[BusyBox] Daemon services in busybox and pidfiles
Henrik G. Bakken
hgb at ifi.uio.no
Wed Feb 18 08:50:41 UTC 2004
Hi. I have a question about a potential feature request in busybox.
I haven't studied the latest CVS (or actually any pre versions since
pre3, but I looked at pre7), but I don't think this has been introduced.
If it has, I'm sorry.
It would be useful to introduce a common option to the busybox daemon
services (for my part, telnetd and syslogd) to allow the applications to
write their pid to a file after forking.
I want my services to have the correct pid listed in
/var/run/$service.pid, and that is difficult here. With syslogd, I
currently use -n (don't fork), run it with &, and store $!. With
telnet, I have no better solution than to use ps to find the pid.
Introducing an option -P <file> (since -p is used by -p <port>) to store
pid in <file> after the daemon() call would be an improvement, I think.
It probably shouldn't be too much work either. Is a patch introducing
this something that could be considered for 1.00?
--
Henrik Grindal Bakken <hgb at ifi.uio.no>
PGP ID: 8D436E52
Fingerprint: 131D 9590 F0CF 47EF 7963 02AF 9236 D25A 8D43 6E52
More information about the busybox
mailing list