Commit 034520c2 authored by Richard Genoud's avatar Richard Genoud Committed by Thomas Petazzoni
Browse files

busybox: S01logging: implement restart



restart wasn't doing anything, and the expected behaviour is stop/start.

Signed-off-by: default avatarRichard Genoud <richard.genoud@gmail.com>
Acked-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 8eabd74a
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -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}"