fi
configtest() {
- apache -t > /dev/null 2>&1
+ /usr/sbin/apache -t > /dev/null 2>&1
RETVAL=$?
}
fi
if [ ! -f /var/lock/subsys/apache ]; then
msg_starting apache
- daemon apache $HTTPD_OPTS
+ daemon /usr/sbin/apache $HTTPD_OPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/apache
else
# Stop daemons.
if [ -f /var/lock/subsys/apache ]; then
msg_stopping apache
- killproc apache
+ killproc --pidfile /var/run/apache.pid apache
rm -f /var/lock/subsys/apache /var/run/apache.pid /var/run/apache.loc* >/dev/null 2>&1
else
msg_not_running apache
configtest
if [ $RETVAL -eq 0 ]; then
- killproc apache -$sig
+ killproc --pidfile /var/run/apache.pid apache -$sig
RETVAL=$?
else
fail
reload USR1 0
;;
configtest)
- apache -t
+ /usr/sbin/apache -t
;;
*)
msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|graceful|configtest|status}"