Annotation of /trunk/magellan-initscripts/etc/rc.d/init.d/template
Parent Directory | Revision Log
Revision 781 -
(hide annotations)
(download)
Mon Dec 22 22:01:15 2008 UTC (15 years, 5 months ago) by niro
File size: 647 byte(s)
Mon Dec 22 22:01:15 2008 UTC (15 years, 5 months ago) by niro
File size: 647 byte(s)
-use /etc/conf.d/rc instead of /etc/sysconfig/rc
1 | niro | 2 | #!/bin/bash |
2 | niro | 781 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/template,v 1.3 2008-12-22 22:01:15 niro Exp $ |
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 | * |