Stop sysklogd for core35 update.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / sysklogd
1 #!/bin/sh
2 ########################################################################
3 # Begin $rc_base/init.d/sysklogd
4 #
5 # Description : Sysklogd loader
6 #
7 # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
8 #
9 # Version : 00.00
10 #
11 # Notes :
12 #
13 ########################################################################
14
15 . /etc/sysconfig/rc
16 . ${rc_functions}
17
18 case "${1}" in
19 start)
20 boot_mesg "Starting kernel log daemon..."
21 loadproc klogd -c 1
22
23 boot_mesg "Starting system log daemon..."
24 loadproc syslogd -m 0
25
26 boot_mesg "Saving Bootlog..."
27 if [ -e /var/log/bootlog ]; then
28 mv -f /var/log/bootlog /var/log/bootlog.old
29 fi
30 dmesg -c > /var/log/bootlog
31 evaluate_retval
32 ;;
33 stop)
34 boot_mesg "Stopping kernel log daemon..."
35 killproc klogd
36
37 boot_mesg "Stopping system log daemon..."
38 killproc syslogd
39 ;;
40
41 reload)
42 boot_mesg "Reloading system log daemon config file..."
43 reloadproc syslogd 1
44 ;;
45
46 restart)
47 ${0} stop
48 sleep 1
49 ${0} start
50 ;;
51
52 status)
53 statusproc syslogd
54 statusproc klogd
55 ;;
56
57 *)
58 echo "Usage: ${0} {start|stop|reload|restart|status}"
59 exit 1
60 ;;
61 esac
62
63 # End $rc_base/init.d/sysklogd