Contents of /trunk/busybox/syslogd.rc
Parent Directory | Revision Log
Revision 1278 -
(show annotations)
(download)
Sun Feb 6 21:02:01 2011 UTC (13 years, 9 months ago) by niro
File size: 813 byte(s)
Sun Feb 6 21:02:01 2011 UTC (13 years, 9 months ago) by niro
File size: 813 byte(s)
- fixed runlevels for busybox
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 syslogd 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-ng 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 |