python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / rsyslog / S01logging
blob8e4a59c2d5e6fbaf468360d2f4b25f33ae5c24a1
1 #!/bin/sh
3 start() {
4 printf "Starting rsyslog daemon: "
5 start-stop-daemon -S -q -p /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd
6 [ $? = 0 ] && echo "OK" || echo "FAIL"
9 stop() {
10 printf "Stopping rsyslog daemon: "
11 start-stop-daemon -K -q -p /var/run/rsyslogd.pid
12 [ $? = 0 ] && echo "OK" || echo "FAIL"
15 restart() {
16 stop
17 sleep 1
18 start
21 case "$1" in
22 start)
23 start
25 stop)
26 stop
28 restart|reload)
29 restart
32 echo "Usage: $0 {start|stop|restart}"
33 exit 1
34 esac
36 exit $?