Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1263 - (hide annotations) (download)
Fri Mar 11 17:44:48 2011 UTC (13 years, 2 months ago) by niro
Original Path: trunk/magellan-initscripts/rc/template
File size: 488 byte(s)
moved [top]/etc/rc.d/init.d -> [top]/rc
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 niro 1252 rc_print "Starting ..."
19 niro 2 loadproc
20     ;;
21    
22     stop)
23 niro 1252 rc_print "Stopping ..."
24 niro 2 killproc
25     ;;
26    
27     reload)
28 niro 1252 rc_print "Reloading ..."
29 niro 2 reloadproc
30     ;;
31    
32     restart)
33     $0 stop
34     sleep 1
35     $0 start
36     ;;
37    
38     status)
39     statusproc
40     ;;
41    
42     *)
43 niro 1252 rc_echo "Usage: $0 {start|stop|reload|restart|status}"
44 niro 2 exit 1
45     ;;
46     esac

Properties

Name Value
svn:executable *