Changed files:
apache1.init -> 1.10
# chkconfig: 345 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# chkconfig: 345 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
-# processname: httpd
-# pidfile: /var/run/httpd.pid
-# config: /etc/httpd/httpd.conf
+# processname: apache
+# pidfile: /var/run/apache.pid
+# config: /etc/apache/apache.conf
# Source function library
# Source function library
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
# nls "ERROR: Networking is down. %s can't be run." <service>
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
# nls "ERROR: Networking is down. %s can't be run." <service>
+ msg_network_down apache
case "$1" in
start)
# Check if the service is already running?
case "$1" in
start)
# Check if the service is already running?
- if [ ! -f /var/lock/subsys/httpd ]; then
- msg_starting httpd
- daemon httpd $HTTPD_OPTS
+ if [ ! -f /var/lock/subsys/apache ]; then
+ msg_starting apache
+ daemon apache $HTTPD_OPTS
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/httpd
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/apache
- msg_already_running httpd
+ msg_already_running apache
fi
;;
stop)
# Stop daemons.
fi
;;
stop)
# Stop daemons.
- if [ -f /var/lock/subsys/httpd ]; then
- msg_stopping httpd
- killproc httpd
- rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc* >/dev/null 2>&1
+ if [ -f /var/lock/subsys/apache ]; then
+ msg_stopping apache
+ killproc apache
+ rm -f /var/lock/subsys/apache /var/run/.pid /var/run/apache.loc* >/dev/null 2>&1
exit $?
;;
reload|force-reload)
exit $?
;;
reload|force-reload)
- if [ -f /var/lock/subsys/httpd ]; then
- msg_reloading httpd
- killproc httpd -HUP
+ if [ -f /var/lock/subsys/apache ]; then
+ msg_reloading apache
+ killproc apache -HUP
- msg_not_running httpd >&2
+ msg_not_running apache >&2
- if [ -f /var/lock/subsys/httpd ]; then
- msg_reloading httpd
- killproc httpd -USR1
+ if [ -f /var/lock/subsys/apache ]; then
+ msg_reloading apache
+ killproc apache -USR1
- msg_not_running httpd >&2
+ msg_not_running apache >&2