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 if [ "${NETWORKING}" = "no" ]; then
26 echo "WARNING: Networking is down. Apache can't be runed."
30 # See how we were called.
33 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/httpd ]; then
37 touch /var/lock/subsys/httpd
39 echo "httpd already is running"
43 show Shutting down httpd
45 rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc*
56 echo "Usage: $0 {start|stop|restart|status}"