Contents of /trunk/busybox/syslogd.rc
Parent Directory | Revision Log
Revision 1233 -
(show annotations)
(download)
Fri Dec 10 22:49:20 2010 UTC (13 years, 10 months ago) by niro
File size: 825 byte(s)
Fri Dec 10 22:49:20 2010 UTC (13 years, 10 months ago) by niro
File size: 825 byte(s)
-tuned mdev.conf and process uevents (need initscripts with trigger_uevent support) -added mdev helpers -added rc script for syslogd, needed by dropbear
1 | #!/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/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 --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 |