pass ARCH down to uClibc
[buildroot.git] / package / sysklogd / S25syslog
blob07683ed2f0f39cd8bd0bd386eb1955000ce50a80
1 #!/bin/sh
3 # Starts syslog.
8 umask 077
10 start() {
11 echo -n "Starting syslogd: "
12 start-stop-daemon --start --quiet --pidfile /var/run/syslog.pid --exec /sbin/syslogd -- -m 0
13 echo "OK"
15 echo -n "Starting klogd: "
16 start-stop-daemon --start --quiet --pidfile /var/run/klogd.pid --exec /sbin/klogd
17 echo "OK"
19 stop() {
20 echo -n "Stopping klogd: "
21 start-stop-daemon --stop --name klogd
22 echo "OK"
24 echo -n "Stopping syslogd: "
25 start-stop-daemon --stop --name syslogd
26 echo "OK"
28 restart() {
29 stop
30 start
33 case "$1" in
34 start)
35 start
37 stop)
38 stop
40 restart|reload)
41 restart
44 echo $"Usage: $0 {start|stop|restart}"
45 exit 1
46 esac
48 exit $?