[PATCH] Write pid files for klogd, ntpd and watchdog
Anthony G. Basile
basile at opensource.dyc.edu
Thu Dec 6 21:30:25 UTC 2012
On 12/06/2012 02:15 AM, Laurent Bercot wrote:
>> couldn't we make it a config option?
>> Eventually also for syslogd.
>
> That would work for me. I still believe this would be bloat in the
> source code, since the same behaviour can be achieved in 2 lines of
> shell; but at least I could disable it at compile-time.
>
There is already FEATURE_PIDFILE which "makes some applets (e.g. crond,
syslogd, inetd) write a pidfile in /var/run". I think the thing to do
here is 1) make sure that all applets which run as daemons behave the
same way with respect to pidfiles and 2) add another dependent option
CONFIG_PID_FILE_PATH which allows one to configure the pid file path. I
think this should work for everyone.
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
More information about the busybox
mailing list