From 98a9d702dcf1891b8f3d79d201906ebd361cf507 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Mon, 17 Feb 2020 17:07:08 +0000 Subject: added init script syslog-ng --- tools/conf/etc/rc.d/syslog-ng | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 tools/conf/etc/rc.d/syslog-ng (limited to 'tools/conf/etc/rc.d') 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 -- cgit 1.4.1-2-gfad0