4 printf "Starting rsyslog daemon: "
5 start-stop-daemon
-S -q -p /var
/run
/rsyslogd.pid
--exec /usr
/sbin
/rsyslogd
6 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
10 printf "Stopping rsyslog daemon: "
11 start-stop-daemon
-K -q -p /var
/run
/rsyslogd.pid
12 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
32 echo "Usage: $0 {start|stop|restart}"