4 printf "Starting syslog-ng daemon: "
5 start-stop-daemon
-S -q -p /var
/run
/syslog-ng.pid \
6 -x /usr
/sbin
/syslog-ng
-- --pidfile /var
/run
/syslog-ng.pid
7 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
11 printf "Stopping syslog-ng daemon: "
12 start-stop-daemon
-K -q -p /var
/run
/syslog-ng.pid \
13 -x /usr
/sbin
/syslog-ng
14 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
34 echo "Usage: $0 {start|stop|restart}"