Magellan Linux

Annotation of /trunk/fcron/fcron.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years ago) by niro
File size: 738 byte(s)
-import

1 niro 144 #!/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/sysconfig/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