sngrep: fix error if gnutls and openssl are both enabled
[buildroot-gz.git] / package / sysklogd / S01logging
blob1cbfe869fae958cb832ea75ccc40f6d2c944799b
1 #!/bin/sh
3 case "$1" in
4 start)
5 printf "Starting logging: "
6 /sbin/syslogd -m 0
7 /sbin/klogd
8 echo "OK"
9 ;;
10 stop)
11 printf "Stopping logging: "
12 [ -f /var/run/klogd.pid ] && kill `cat /var/run/klogd.pid`
13 [ -f /var/run/syslogd.pid ] && kill `cat /var/run/syslogd.pid`
14 echo "OK"
16 restart|reload)
17 $0 stop
18 $0 start
21 echo "Usage: $0 {start|stop|restart}"
22 exit 1
23 esac
25 exit $?