1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /root/magellan-cvs/src/apache2/apache2.rc,v 1.2 2007-06-30 16:32:07 niro Exp $ |
# $Header: /root/magellan-cvs/src/apache2/apache2.rc,v 1.5 2009-07-03 13:49:52 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k |
#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k |
5 |
#%start: 60 |
#%start: 60 |
6 |
#%stop: 80 |
#%stop: 30 |
7 |
|
|
8 |
#deps |
#deps |
9 |
#%needs: |
#%needs: |
10 |
#%before: |
#%before: |
11 |
#%after: |
#%after: |
12 |
|
|
13 |
source /etc/sysconfig/rc |
source /etc/conf.d/rc |
14 |
source $rc_functions |
source $rc_functions |
15 |
|
|
16 |
case "$1" in |
case "$1" in |
28 |
|
|
29 |
stop) |
stop) |
30 |
echo -e ${COLOREDSTAR}"Stopping apache2 http daemon ..." |
echo -e ${COLOREDSTAR}"Stopping apache2 http daemon ..." |
31 |
start-stop-daemon --stop --retry -TERM/5/-KILL/5 \ |
start-stop-daemon --stop --exec /usr/sbin/apache2 \ |
32 |
--exec /usr/sbin/apache2 --pidfile /var/run/apache2.pid |
--pidfile /var/run/apache2.pid |
33 |
evaluate_retval |
evaluate_retval |
34 |
|
|
35 |
update_svcstatus $1 |
update_svcstatus $1 |