about summary refs log tree commit diff stats
path: root/tools/conf/etc/rc.d/syslog-ng
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2020-04-20 01:01:22 +0100
committerSilvino Silva <silvino@bk.ru>2020-04-20 01:01:22 +0100
commitfb54fa28e88afb7f9dcd7027b7c820ae8b43f802 (patch)
tree4987031dc2bc48a56484d611598b46f696a8889b /tools/conf/etc/rc.d/syslog-ng
parentfd186246f96768b8398f0ffe32ef136cb895fa21 (diff)
parent4216ad7e3cc4d4733034a50c122e4efa4ae08108 (diff)
downloaddoc-fb54fa28e88afb7f9dcd7027b7c820ae8b43f802.tar.gz
Merge branch 'master' into release
Diffstat (limited to 'tools/conf/etc/rc.d/syslog-ng')
-rwxr-xr-xtools/conf/etc/rc.d/syslog-ng26
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