Contents of /trunk/fcron/fcron.rc
Parent Directory | Revision Log
Revision 723 -
(show annotations)
(download)
Mon Dec 22 22:42:18 2008 UTC (15 years, 9 months ago) by niro
File size: 735 byte(s)
Mon Dec 22 22:42:18 2008 UTC (15 years, 9 months ago) by niro
File size: 735 byte(s)
-fixed moved rc
1 | #!/bin/bash |
2 | |
3 | #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k |
4 | #%start: 26 |
5 | #%stop: 45 |
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 | echo -e ${COLOREDSTAR}"Starting fcron daemon ..." |
18 | start-stop-daemon --start --quiet --exec /usr/sbin/fcron |
19 | evaluate_retval |
20 | |
21 | update_svcstatus $1 |
22 | splash svc_started "$(basename $0)" 0 |
23 | ;; |
24 | |
25 | stop) |
26 | echo -e ${COLOREDSTAR}"Stopping fcron daemon ..." |
27 | start-stop-daemon --stop --quiet --pidfile /var/run/fcron.pid |
28 | evaluate_retval |
29 | |
30 | update_svcstatus $1 |
31 | splash svc_stopped "$(basename $0)" 0 |
32 | ;; |
33 | |
34 | restart) |
35 | $0 stop |
36 | sleep 1 |
37 | $0 start |
38 | ;; |
39 | |
40 | status) |
41 | statusproc fcron |
42 | ;; |
43 | |
44 | *) |
45 | echo "Usage: $0 {start|stop|restart|status}" |
46 | exit 1 |
47 | ;; |
48 | esac |