Magellan Linux

Contents of /trunk/initscripts/sysvinit/rc/template

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1356 - (show annotations) (download)
Sat Jun 4 21:05:01 2011 UTC (12 years, 10 months ago) by niro
File size: 488 byte(s)
-copied
1 #!/bin/bash
2 # $Id$
3
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 source /etc/conf.d/rc
14 source ${rc_functions}
15
16 case "$1" in
17 start)
18 rc_print "Starting ..."
19 loadproc
20 ;;
21
22 stop)
23 rc_print "Stopping ..."
24 killproc
25 ;;
26
27 reload)
28 rc_print "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 rc_echo "Usage: $0 {start|stop|reload|restart|status}"
44 exit 1
45 ;;
46 esac

Properties

Name Value
svn:executable *