Magellan Linux

Contents of /trunk/magellan-initscripts/etc/rc.d/init.d/sysklogd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (show annotations) (download)
Tue Mar 15 19:07:56 2005 UTC (19 years, 3 months ago) by niro
File size: 1049 byte(s)
updated header and fixed whitespaces

1 #!/bin/bash
2 # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/sysklogd,v 1.2 2005-03-15 19:07:56 niro Exp $
3
4 #%rlevels: 0:k 1:k 2:k 3:s 4:s 5:s 6:k
5 #%start: 10
6 #%stop: 20
7
8 #deps
9 #%needs:
10 #%before:
11 #%after:
12
13 source /etc/sysconfig/rc
14 source $rc_functions
15
16 case "$1" in
17 start)
18 echo -e ${COLOREDSTAR}"Starting system log daemon ..."
19 loadproc syslogd -m 0
20
21 echo -e ${COLOREDSTAR}"Starting kernel log daemon ..."
22 loadproc klogd
23
24 update_svcstatus $1
25 splash svc_started "$(basename $0)" 0
26 ;;
27
28 stop)
29 echo -e ${COLOREDSTAR}"Stopping kernel log daemon ..."
30 killproc klogd
31
32 echo -e ${COLOREDSTAR}"Stopping system log daemon ..."
33 killproc syslogd
34
35 update_svcstatus $1
36 splash svc_stopped "$(basename $0)" 0
37 ;;
38
39 reload)
40 echo -e ${COLOREDSTAR}"Reloading system log daemon config file ..."
41 reloadproc syslogd 1
42 ;;
43
44 restart)
45 $0 stop
46 sleep 1
47 $0 start
48 ;;
49
50 status)
51 statusproc syslogd
52 statusproc klogd
53 ;;
54
55 *)
56 echo "Usage: $0 {start|stop|reload|restart|status}"
57 exit 1
58 ;;
59 esac

Properties

Name Value
svn:executable *