Patch for BusyBox httpd

Giuseppe Ciotta giuseppe at telvia.it
Tue Jul 11 14:55:39 UTC 2006


On Tue, Jul 11, 2006 at 02:14:33PM +0200, Richard Braun wrote:
> On Tue, Jul 11, 2006 at 02:00:07PM +0200, Bernhard Fischer wrote:
> > I believe that you should use start-stop-daemon -m /var/run/httpd.pid -x
> > ..... to create pidfiles. To me, it doesn't make sense to equip the
> > individual daemons with redundant functionality (introducing
> > x{read,write}_pidfile and using that also sounds like a bad idea to me).
> 
> 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?

-- 



More information about the busybox mailing list