Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 5 months ago) by niro
File size: 918 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

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

Properties

Name Value
svn:executable *