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 is_no "${NETWORKING}"; then
26 # nls "ERROR: Networking is down. %s can't be run." <service>
27 msg_network_down httpd
31 # See how we were called.
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/httpd ]; then
37 daemon httpd $HTTPD_OPTS
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/httpd
41 msg_already_running httpd
47 if [ -f /var/lock/subsys/httpd ]; then
50 rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc* >/dev/null 2>&1
71 msg_usage "$0 {start|stop|restart|reload|status}"