Magellan Linux

Contents of /trunk/magellan-initscripts/etc/rc.d/init.d/template

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (show annotations) (download)
Tue Mar 15 19:07:56 2005 UTC (19 years, 2 months ago) by niro
File size: 648 byte(s)
updated header and fixed whitespaces

1 #!/bin/bash
2 # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/template,v 1.2 2005-03-15 19:07:56 niro Exp $
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/sysconfig/rc
14 source $rc_functions
15
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 *