2010-02-10 01:22:37 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# /etc/rc.d/syslog-ng: start/stop syslog-ng logging daemon
|
|
|
|
#
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
2010-04-12 20:28:10 +02:00
|
|
|
/usr/sbin/syslog-ng -f /etc/syslog-ng.conf -p /var/run/syslog-ng.pid
|
2010-02-10 01:22:37 +01:00
|
|
|
;;
|
|
|
|
stop)
|
2012-01-24 08:44:41 +01:00
|
|
|
killall -q /usr/sbin/syslog-ng
|
2010-02-10 01:22:37 +01:00
|
|
|
rm -f /var/run/syslog-ng.pid
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
sleep 2
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "usage: $0 [start|stop|restart]"
|
|
|
|
;;
|
|
|
|
esac
|