]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - misc/sysfiles/etc/init.d/sysklogd
added git & asciidoc
[hdw-linux/hdw-linux.git] / misc / sysfiles / etc / init.d / sysklogd
1 #!/bin/sh
2 #
3 # hdw - linux /etc/init.d/sysklogd (copied from ROCK Linux)
4 #
5 # linux system logging utilities
6 #
7
8 test -f /usr/sbin/klogd || exit 0
9 test -f /usr/sbin/syslogd || exit 0
10
11 case "$1"
12 in
13         start)
14                 echo -n "starting system log daemons: syslogd "
15                 /usr/sbin/syslogd
16                 echo -n "klogd "
17                 /usr/sbin/klogd
18                 echo "done."
19                 ;;
20         stop)
21                 echo -n "stopping system log daemons: syslogd "
22                 killall -15 /usr/sbin/klogd
23                 echo -n "klogd "
24                 killall -15 /usr/sbin/syslogd
25                 echo "done."
26                 ;;
27         restart)
28                 $0 stop ; sleep 1 ; $0 start ;;
29         *)
30                 echo "Usage: $0 { start | restart | stop }" ; exit 1 ;;
31 esac
32
33 exit 0