python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / busybox / S01logging
blob4632a4cc9971e1f899fabef3d7a09cf527f54fe9
1 #!/bin/sh
3 # Start logging
6 SYSLOGD_ARGS=-n
7 KLOGD_ARGS=-n
8 [ -r /etc/default/logging ] && . /etc/default/logging
10 start() {
11 printf "Starting logging: "
12 start-stop-daemon -b -S -q -m -p /var/run/syslogd.pid --exec /sbin/syslogd -- $SYSLOGD_ARGS
13 start-stop-daemon -b -S -q -m -p /var/run/klogd.pid --exec /sbin/klogd -- $KLOGD_ARGS
14 echo "OK"
17 stop() {
18 printf "Stopping logging: "
19 start-stop-daemon -K -q -p /var/run/syslogd.pid
20 start-stop-daemon -K -q -p /var/run/klogd.pid
21 echo "OK"
24 case "$1" in
25 start)
26 start
28 stop)
29 stop
31 restart|reload)
32 stop
33 start
36 echo "Usage: $0 {start|stop|restart}"
37 exit 1
38 esac
40 exit $?