kumquat-buildroot/package/busybox/S01logging
Tilman Keskinöz 1b22957a2c Fix path to pidfile
Signed-off-by: Tilman Keskinöz <arved@arved.at>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-03-31 20:56:50 +02:00

27 lines
479 B
Bash

#!/bin/sh
#
# Start logging
#
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
echo "OK"
;;
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"
;;
restart|reload)
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?