From: Javier Viguera Date: Wed, 6 Nov 2013 10:00:56 +0000 (+0100) Subject: busybox: minor fixes to S01logging bootscript X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc6b5e4411992f05ab45dac90be01ade8279e000;p=buildroot.git busybox: minor fixes to S01logging bootscript * The PID file is not created unless the '-m' option is passed to start-stop-daemon. * Remove the mark '-m 0' option as it's not supported by busybox's syslogd. * Syslogd and Klogd forks to background by default giving as a result that the pid stored in the PID file is not correct. Let the background job be done by 'start-stop-daemon' by passing '-n' (foreground) to the daemons and '-b' to start-stop-daemon. This way the pid stored in the PID files is correct. Signed-off-by: Javier Viguera Signed-off-by: Peter Korsgaard --- diff --git a/package/busybox/S01logging b/package/busybox/S01logging index 37a2c117b1..b7af2a7d5d 100644 --- a/package/busybox/S01logging +++ b/package/busybox/S01logging @@ -6,8 +6,8 @@ case "$1" in start) echo -n "Starting logging: " - start-stop-daemon -S -q -p /var/run/syslogd.pid --exec /sbin/syslogd -- -m 0 - start-stop-daemon -S -q -p /var/run/klogd.pid --exec /sbin/klogd + start-stop-daemon -b -S -q -m -p /var/run/syslogd.pid --exec /sbin/syslogd -- -n + start-stop-daemon -b -S -q -m -p /var/run/klogd.pid --exec /sbin/klogd -- -n echo "OK" ;; stop)