Patch for BusyBox httpd

Richard Braun rbraun at proformatique.com
Tue Jul 11 15:05:19 UTC 2006


On Tue, Jul 11, 2006 at 04:55:39PM +0200, Giuseppe Ciotta wrote:
> > The problem with start-stop-daemon is that it relies on the daemon to
> > create its PID file. When the daemon doesn't, it usually provides an
> > option to force running in the foreground, so that you can use
> > start-stop-daemon with --background and --make-pidfile. The problem with
> > busybox httpd is that it doesn't provide such an option. 
> 
> What about adding the option to go in foreground and leave the pid
> writing task to start-stop-daemon then?

It's one solution, but usually, a daemon is designed to run in the
background, so using an option to run in the foreground for a daemon
designed to run in the background is not really logic. The usual way,
again, is that the daemon has an option to write his PID file. The
best implementation has both : it can write the PID file, and it
can run in the foreground, depending on the user options.

-- 
Richard Braun
Proformatique - 67 rue Voltaire - 92800 Puteaux
Tel. : 01 41 38 99 60 - Fax. : 01 41 38 99 70
Email : rbraun at proformatique.com - http://proformatique.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060711/edcd9808/attachment-0002.pgp 


More information about the busybox mailing list