3 # apache Apache Web Server
6 # description: Apache is a World Wide Web server. It is used to serve \
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
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 . /etc/sysconfig/network
22 [ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
24 # Check that networking is up.
25 [ "${NETWORKING}" = "no" ] && echo "Error: Networking is down"; exit 0
28 # See how we were called.
31 # Check if the service is already running?
32 if [ ! -f /var/lock/subsys/httpd ]; then
36 echo "httpd already is running"
38 touch /var/lock/subsys/httpd
41 show Shutting down httpd
43 rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc*
53 echo "Usage: $0 {start|stop|restart|status}"