[BusyBox] start-stop-daemon --background

Zeisberger, Uwe Uwe_Zeisberger at digi.com
Fri Aug 12 12:26:59 UTC 2005


Hello,

> On 8/12/05, Zeisberger, Uwe <Uwe_Zeisberger at digi.com> wrote:
> > my root is mounted ro, and I want to start a daemon with 
> > start-stop-daemon as follows:
> > 
> >         # start-stop-daemon --start --pidfile /var/run/utelnetd.pid --background --make-pidfile --exec /sbin/utelnetd
> > 
> > This call is silent and exits with 0, but my telnet daemon is not started.
> > 
> > Without --background I get an error as expected:
> > 
> >         # start-stop-daemon --start --pidfile /var/run/utelnetd.pid --make-pidfile --exec /sbin/utelnetd
> >         start-stop-daemon: Unable to write pidfile '/var/run/utelnetd.pid': Permission denied
> > 
> > With the start-stop-daemon on my host (from debian package dpkg-1.13.10)
> > I also get an error with --background.
> 
> As far as I know, it's normal you get that error: start-stop-daemon
> wants to write that pid-file but it can't.  Fix it by making /var/run
> writable by using tmpfs.

My suggested change is, that start-stop-daemon prints this warning and returns
an exit status != 0 if the --background flag was given, too.

Best regards
Uwe

-- 
Uwe Zeisberger, FS Forth-Systeme GmbH, http://www.fsforth.de/
A Digi International Company
Küferstraße 8, D-79206 Breisach, Germany
Phone: +49 (7667) 908 0 Fax: +49 (7667) 908 200 




More information about the busybox mailing list