python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / syslog-ng / S01logging
blobd7c899a1e3577ec406ea26155134aaa02731a162
1 #!/bin/sh
3 start() {
4 printf "Starting syslog-ng daemon: "
5 start-stop-daemon -S -q -p /var/run/syslog-ng.pid \
6 -x /usr/sbin/syslog-ng -- --pidfile /var/run/syslog-ng.pid
7 [ $? = 0 ] && echo "OK" || echo "FAIL"
10 stop() {
11 printf "Stopping syslog-ng daemon: "
12 start-stop-daemon -K -q -p /var/run/syslog-ng.pid \
13 -x /usr/sbin/syslog-ng
14 [ $? = 0 ] && echo "OK" || echo "FAIL"
17 restart() {
18 stop
19 sleep 1
20 start
23 case "$1" in
24 start)
25 start
27 stop)
28 stop
30 restart|reload)
31 restart
34 echo "Usage: $0 {start|stop|restart}"
35 exit 1
36 esac
38 exit $?