busybox: S01logging: implement restart
PATCH 1/1 busybox: S01logging: implement restart
restart wasn't doing anything, and the expected behaviour is stop/start.
Signed-off-by Richard Genoud <[email protected]>
--- package/busybox/S01logging | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
package/busybox/S01logging +14 -4
@@ -3,20 +3,30 @@ # Start logging # -case "$1" in - start) +start() { echo -n "Starting logging: " 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) +} + +stop() { echo -n "Stopping logging: " start-stop-daemon -K -q -p /var/run/syslogd.pid start-stop-daemon -K -q -p /var/run/klogd.pid echo "OK" +} + +case "$1" in + start) + start + ;; + stop) + stop ;; restart|reload) + stop + start ;; *) echo "Usage: $0 {start|stop|restart}"
Signature · 1 line
2.0.0
PATCH 1/1 busybox: S01logging: implement restart
Dear Richard,
Quoted 3 lines · Richard Genoud
restart wasn't doing anything, and the expected behaviour is stop/start.
Signed-off-by Richard Genoud <[email protected]>
Acked-by Luca Ceresoli <[email protected]>
Signature · 1 line
Luca
Thomas Petazzoni
AppliedPATCH 1/1 busybox: S01logging: implement restart
In reply to Richard GenoudDear Richard Genoud,
Quoted 6 lines · Richard Genoud
restart wasn't doing anything, and the expected behaviour is stop/start.
Signed-off-by Richard Genoud <[email protected]>--- package/busybox/S01logging | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
Applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com