diff options
Diffstat (limited to 'tools/conf/etc/rc.d/syslog-ng')
-rwxr-xr-x | tools/conf/etc/rc.d/syslog-ng | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/conf/etc/rc.d/syslog-ng b/tools/conf/etc/rc.d/syslog-ng new file mode 100755 index 0000000..4ccc7f8 --- /dev/null +++ b/tools/conf/etc/rc.d/syslog-ng @@ -0,0 +1,26 @@ +#!/bin/sh +# +# /etc/rc.d/syslog-ng: start/stop syslog-ng logging daemon +# + +case $1 in +start) + /sbin/syslog-ng -f /etc/syslog-ng.conf -p /var/run/syslog-ng.pid + ;; +stop) + killall -q /sbin/syslog-ng + rm -f /var/run/syslog-ng.pid + ;; +reload) + /sbin/syslog-ng-ctl reload + ;; + +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac |