2005-09-13 22:58:37 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Starts syslog.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
umask 077
|
|
|
|
|
|
|
|
start() {
|
|
|
|
echo -n "Starting syslogd: "
|
2008-03-18 01:20:24 +01:00
|
|
|
start-stop-daemon -S -q -p /var/run/syslog.pid -x /sbin/syslogd -- -m 0
|
2005-09-13 22:58:37 +02:00
|
|
|
echo "OK"
|
|
|
|
|
|
|
|
echo -n "Starting klogd: "
|
2008-03-18 01:20:24 +01:00
|
|
|
start-stop-daemon -S -q -p /var/run/klogd.pid -x /sbin/klogd
|
2005-09-13 22:58:37 +02:00
|
|
|
echo "OK"
|
|
|
|
}
|
|
|
|
stop() {
|
|
|
|
echo -n "Stopping klogd: "
|
2008-03-18 01:20:24 +01:00
|
|
|
start-stop-daemon -K -n klogd
|
2005-09-13 22:58:37 +02:00
|
|
|
echo "OK"
|
|
|
|
|
|
|
|
echo -n "Stopping syslogd: "
|
2008-03-18 01:20:24 +01:00
|
|
|
start-stop-daemon -K -n syslogd
|
2005-09-13 22:58:37 +02:00
|
|
|
echo "OK"
|
|
|
|
}
|
|
|
|
restart() {
|
|
|
|
stop
|
|
|
|
start
|
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop
|
|
|
|
;;
|
|
|
|
restart|reload)
|
|
|
|
restart
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo $"Usage: $0 {start|stop|restart}"
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $?
|