* Merged newxml into HEAD
[linux_from_scratch.git] / bootscripts / lfs / init.d / sysklogd
blob116f2377fb31acdbc198dfbf882fa342fba90cda
1 #!/bin/sh
2 # Begin $rc_base/init.d/sysklogd - Syslogd and Klogd loaders
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 . /etc/sysconfig/rc
8 . $rc_functions
10 case "$1" in
11 start)
12 echo "Starting system log daemon..."
13 loadproc syslogd -m 0
15 echo "Starting kernel log daemon..."
16 loadproc klogd
19 stop)
20 echo "Stopping kernel log daemon..."
21 killproc klogd
23 echo "Stopping system log daemon..."
24 killproc syslogd
27 reload)
28 echo "Reloading system log daemon config file..."
29 reloadproc syslogd 1
32 restart)
33 $0 stop
34 sleep 1
35 $0 start
38 status)
39 statusproc syslogd
40 statusproc klogd
44 echo "Usage: $0 {start|stop|reload|restart|status}"
45 exit 1
47 esac
49 # End $rc_base/init.d/sysklogd