Magellan Linux

Diff of /trunk/apache2/apache2.rc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 231 by niro, Sat Jun 30 02:24:36 2007 UTC revision 863 by niro, Fri Jul 3 13:49:52 2009 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /root/magellan-cvs/src/apache2/apache2.rc,v 1.1 2007-06-30 02:24:36 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
# Line 19  case "$1" in Line 19  case "$1" in
19   [ -f /var/log/apache2/ssl_scache ] &&  rm /var/log/apache2/ssl_scache   [ -f /var/log/apache2/ssl_scache ] &&  rm /var/log/apache2/ssl_scache
20    
21   start-stop-daemon --start --exec /usr/sbin/apache2 -- \   start-stop-daemon --start --exec /usr/sbin/apache2 -- \
22   -d /usr -f /etc/apache2/httpd.conf -k start   -d @@ServerRoot@@ -f /etc/apache2/httpd.conf -k start
23   evaluate_retval   evaluate_retval
24    
25   update_svcstatus $1   update_svcstatus $1
# Line 28  case "$1" in Line 28  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

Legend:
Removed from v.231  
changed lines
  Added in v.863