Magellan Linux

Annotation of /trunk/initscripts/sysvinit/rc/template

Parent Directory Parent Directory | Revision Log Revision Log


Revision 931 - (hide annotations) (download)
Thu Nov 5 12:57:14 2009 UTC (14 years, 6 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/template
File size: 523 byte(s)
-fixed header
1 niro 2 #!/bin/bash
2 niro 931 # $Id$
3 niro 2
4     #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k
5     #%start: 26
6     #%stop: 51
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13 niro 781 source /etc/conf.d/rc
14     source ${rc_functions}
15 niro 2
16     case "$1" in
17     start)
18     echo -e ${COLOREDSTAR}"Starting ..."
19     loadproc
20     ;;
21    
22     stop)
23     echo -e ${COLOREDSTAR}"Stopping ..."
24     killproc
25     ;;
26    
27     reload)
28     echo -e $COLOREDSTAR}"Reloading ..."
29     reloadproc
30     ;;
31    
32     restart)
33     $0 stop
34     sleep 1
35     $0 start
36     ;;
37    
38     status)
39     statusproc
40     ;;
41    
42     *)
43     echo "Usage: $0 {start|stop|reload|restart|status}"
44     exit 1
45     ;;
46     esac

Properties

Name Value
svn:executable *