diff options
author | punk <punk@libernaut> | 2021-04-29 16:10:16 +0100 |
---|---|---|
committer | punk <punk@libernaut> | 2021-04-29 16:10:16 +0100 |
commit | 5e601f7ee14830ef645ee3d3b1bcdce7450a5ce3 (patch) | |
tree | fd61f912b509c9056e79b9f0ee6b700584c85b57 /linux/conf/rc.d/syslog-ng | |
parent | 3790c6ecd836d25815f7cb8deef62a77d4f3ac9f (diff) | |
download | doc-5e601f7ee14830ef645ee3d3b1bcdce7450a5ce3.tar.gz |
linux tools configs moved to linux folder
Diffstat (limited to 'linux/conf/rc.d/syslog-ng')
-rwxr-xr-x | linux/conf/rc.d/syslog-ng | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/linux/conf/rc.d/syslog-ng b/linux/conf/rc.d/syslog-ng new file mode 100755 index 0000000..4ccc7f8 --- /dev/null +++ b/linux/conf/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 |