about summary refs log tree commit diff stats
path: root/linux/conf/rc.d/syslog-ng
diff options
context:
space:
mode:
authorpunk <punk@libernaut>2021-04-29 16:11:04 +0100
committerpunk <punk@libernaut>2021-04-29 16:11:25 +0100
commit9bef2e2b7ea351b6b1cb490597356677db61ff34 (patch)
treec36ae24aa3c36f6c19284c7d4da7c25a620bfabf /linux/conf/rc.d/syslog-ng
parent6b5cf63d1987889e272643bf7eeb7725df856d11 (diff)
parent5e601f7ee14830ef645ee3d3b1bcdce7450a5ce3 (diff)
downloaddoc-master.tar.gz
release 0.7.2 HEAD master
Diffstat (limited to 'linux/conf/rc.d/syslog-ng')
-rwxr-xr-xlinux/conf/rc.d/syslog-ng26
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