]> git.pld-linux.org Git - packages/apache.git/blob - apache.init
fixes for new daemon();
[packages/apache.git] / apache.init
1 #!/bin/sh
2 #
3 # Startup script for the Apache Web Server
4 #
5 # chkconfig: 345 85 15
6 # description: Apache is a World Wide Web server.  It is used to serve \
7 # HTML files and CGI.
8 # processname: httpd
9 # pidfile: /var/run/httpd.pid
10 # config: /etc/httpd/conf/access.conf
11 # config: /etc/httpd/conf/httpd.conf
12 # config: /etc/httpd/conf/srm.conf
13
14 # Source function library.
15 . /etc/rc.d/init.d/functions
16
17 # Check that networking is up.
18 [ "${NETWORKING}" = "no" ] && exit0
19
20 # Try set service nice level
21 if [ -f /etc/sysconfig/apache ]; then
22     . /etc/sysconfig/apache
23 fi    
24 # See how we were called.
25 case "$1" in
26   start)
27         show Starting httpd
28         daemon httpd 
29         touch /var/lock/subsys/httpd
30         ;;
31   stop)
32         show Shutting down httpd
33         killproc httpd  
34         rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc*
35         ;;
36   status)
37         status httpd
38         ;;
39   restart)
40         $0 stop
41         $0 start
42         ;;
43   *)
44         echo "Usage: $0 {start|stop|restart|status}"
45         exit 1
46         ;;
47 esac
48
49 exit 0
This page took 0.041065 seconds and 4 git commands to generate.