Magellan Linux

Annotation of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/template

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 517 byte(s)
imported.

1 niro 2 #!/bin/bash
2    
3     #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k
4     #%start: 26
5     #%stop: 51
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 ..."
18     loadproc
19     ;;
20    
21     stop)
22     echo -e ${COLOREDSTAR}"Stopping ..."
23     killproc
24     ;;
25    
26     reload)
27     echo -e $COLOREDSTAR}"Reloading ..."
28     reloadproc
29     ;;
30    
31     restart)
32     $0 stop
33     sleep 1
34     $0 start
35     ;;
36    
37     status)
38     statusproc
39     ;;
40    
41     *)
42     echo "Usage: $0 {start|stop|reload|restart|status}"
43     exit 1
44     ;;
45     esac

Properties

Name Value
svn:executable *