about summary refs log tree commit diff stats
path: root/tools/conf/etc/rc.d/syslog-ng
blob: 4ccc7f829a2b28006830346dfb9be88e1badd15c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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