2011-06-29 15:46:20 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Start logging
|
|
|
|
#
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2011-07-13 02:45:22 +02:00
|
|
|
echo -n "Starting logging: "
|
2011-06-29 15:46:20 +02:00
|
|
|
start-stop-daemon -S -q -p /var/run/syslog.pid --exec /sbin/syslogd -- -m 0
|
|
|
|
start-stop-daemon -S -q -p /var/run/klogd.pid --exec /sbin/klogd
|
|
|
|
echo "OK"
|
|
|
|
;;
|
|
|
|
stop)
|
2011-07-13 02:45:22 +02:00
|
|
|
echo -n "Stopping logging: "
|
2011-06-29 15:46:20 +02:00
|
|
|
start-stop-daemon -K -q -p /var/run/syslog.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 $?
|