2011-06-29 21:46:20 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Start logging
|
|
|
|
#
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2011-07-13 08:45:22 +08:00
|
|
|
echo -n "Starting logging: "
|
2013-03-25 12:48:12 +08:00
|
|
|
start-stop-daemon -S -q -p /var/run/syslogd.pid --exec /sbin/syslogd -- -m 0
|
2011-06-29 21:46:20 +08:00
|
|
|
start-stop-daemon -S -q -p /var/run/klogd.pid --exec /sbin/klogd
|
|
|
|
echo "OK"
|
|
|
|
;;
|
|
|
|
stop)
|
2011-07-13 08:45:22 +08:00
|
|
|
echo -n "Stopping logging: "
|
2013-03-25 12:48:12 +08:00
|
|
|
start-stop-daemon -K -q -p /var/run/syslogd.pid
|
2011-06-29 21:46:20 +08:00
|
|
|
start-stop-daemon -K -q -p /var/run/klogd.pid
|
|
|
|
echo "OK"
|
|
|
|
;;
|
|
|
|
restart|reload)
|
|
|
|
;;
|
|
|
|
*)
|
2012-03-16 05:08:09 +08:00
|
|
|
echo "Usage: $0 {start|stop|restart}"
|
2011-06-29 21:46:20 +08:00
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $?
|