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: "
|
2013-03-25 05:48:12 +01:00
|
|
|
start-stop-daemon -S -q -p /var/run/syslogd.pid --exec /sbin/syslogd -- -m 0
|
2011-06-29 15:46:20 +02:00
|
|
|
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: "
|
2013-03-25 05:48:12 +01:00
|
|
|
start-stop-daemon -K -q -p /var/run/syslogd.pid
|
2011-06-29 15:46:20 +02:00
|
|
|
start-stop-daemon -K -q -p /var/run/klogd.pid
|
|
|
|
echo "OK"
|
|
|
|
;;
|
|
|
|
restart|reload)
|
|
|
|
;;
|
|
|
|
*)
|
2012-03-15 22:08:09 +01:00
|
|
|
echo "Usage: $0 {start|stop|restart}"
|
2011-06-29 15:46:20 +02:00
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $?
|