[BusyBox] start-stop-daemon --background
wimpunk at gmail.com
Fri Aug 12 10:39:01 UTC 2005
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.
> I didn't look in the source, but probably this is easy to fix.
> If I find some time I will prepare a patch.
> Best regards
>  If someone will work at this earlier, please send an email
> to avoid double work.
> 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
> busybox mailing list
> busybox at mail.busybox.net
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.
More information about the busybox