[BusyBox] Busybox httpd applet

Hans-Werner Hilse hilse at web.de
Fri Nov 12 11:42:08 UTC 2004


Hi,

On Fri, 12 Nov 2004 12:22:44 +0100
"Rory Vieira" <rory.vieira at coolview.nl> wrote:

> Is there a way to get the running httpd's pid?
> [...]
> I try to start the busybox httpd with:
>   start-stop-daemon -S -q -x /sbin/httpd -p /var/run/bhttpd.pid -- -p 666 -h /var/www
> 
> Only to come to the conclusion that start-stop-daemon doesn't create
> /var/run/bhttpd.pid

Well my (non-busybox) manpage of start-stop-daemon says it will try to read the PID from this file, not write it there. Anyway, you could do a

[start-bhttpd.sh]
#!/bin/sh
/sbin/httpd -p 666 -h /var/www &
echo $! > /var/run/bhttpd.pid
-------------

That should do this.

HWH



More information about the busybox mailing list