blob: 138b210c4f7583c64fb2f96191b0251f4988c6de (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/syslog-ng: start/stop syslog-ng logging daemon
4 #
5
6 case $1 in
7 start)
8 /sbin/syslog-ng -f /etc/syslog-ng.conf -p /var/run/syslog-ng.pid
9 ;;
10 stop)
11 killall -q /sbin/syslog-ng
12 rm -f /var/run/syslog-ng.pid
13 ;;
14 restart)
15 $0 stop
16 sleep 2
17 $0 start
18 ;;
19 *)
20 echo "usage: $0 [start|stop|restart]"
21 ;;
22 esac
|