Contents of /trunk/busybox/syslogd.rc
Parent Directory
|
Revision Log
Revision 1492 -
(show annotations)
(download)
Mon Aug 8 09:02:19 2011 UTC (12 years, 8 months ago) by niro
File size: 809 byte(s)
Mon Aug 8 09:02:19 2011 UTC (12 years, 8 months ago) by niro
File size: 809 byte(s)
-fixed spelling typos
1 | #!/bin/bash |
2 | |
3 | #%rlevels: 0:k 3:s |
4 | #%start: 10 |
5 | #%stop: 20 |
6 | |
7 | #deps |
8 | #%needs: |
9 | #%before: |
10 | #%after: |
11 | |
12 | source /etc/conf.d/rc |
13 | source $rc_functions |
14 | |
15 | case "$1" in |
16 | start) |
17 | rc_print "Starting syslog daemon ..." |
18 | start-stop-daemon --start --pidfile /var/run/syslogd.pid --exec /sbin/syslogd |
19 | evaluate_retval |
20 | |
21 | update_svcstatus $1 |
22 | splash svc_started "$(basename $0)" 0 |
23 | ;; |
24 | |
25 | stop) |
26 | rc_print "Stopping syslog daemon ..." |
27 | start-stop-daemon --stop --quiet --pidfile /var/run/syslogd.pid |
28 | evaluate_retval |
29 | |
30 | update_svcstatus $1 |
31 | splash svc_stopped "$(basename $0)" 0 |
32 | ;; |
33 | |
34 | reload) |
35 | rc_print "Reloading syslog daemon ..." |
36 | reloadproc /sbin/syslogd |
37 | ;; |
38 | |
39 | restart) |
40 | $0 stop |
41 | sleep 1 |
42 | $0 start |
43 | ;; |
44 | |
45 | status) |
46 | statusproc syslogd |
47 | ;; |
48 | |
49 | *) |
50 | rc_echo "Usage: $0 {start|stop|reload|restart|status}" |
51 | exit 1 |
52 | ;; |
53 | esac |