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 338 by niro, Fri Sep 7 17:32:34 2007 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.4 2007-09-07 17:32:34 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:
# 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.338