/var/run relative ones and functions don't support expanding
Changed files:
apache.init -> 1.64
# Check if the service is already running?
if [ ! -f /var/lock/subsys/httpd ]; then
msg_starting "$SVC_NAME"
# Check if the service is already running?
if [ ! -f /var/lock/subsys/httpd ]; then
msg_starting "$SVC_NAME"
- daemon /usr/sbin/httpd.${HTTPD_MPM} $CFG $HTTPD_OPTS
+ daemon --pidfile /var/run/httpd.pid /usr/sbin/httpd.${HTTPD_MPM} $CFG $HTTPD_OPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/httpd
else
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/httpd
else
# Stop daemons.
if [ -f /var/lock/subsys/httpd ]; then
msg_stopping "$SVC_NAME"
# Stop daemons.
if [ -f /var/lock/subsys/httpd ]; then
msg_stopping "$SVC_NAME"
- killproc --pidfile httpd.pid httpd.${HTTPD_MPM}
+ killproc --pidfile /var/run/httpd.pid httpd.${HTTPD_MPM}
rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc* >/dev/null 2>&1
else
msg_not_running "$SVC_NAME"
rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc* >/dev/null 2>&1
else
msg_not_running "$SVC_NAME"
# See how we were called.
case "$1" in
start)
# See how we were called.
case "$1" in
start)
;;
status)
status httpd.${HTTPD_MPM}
;;
status)
status httpd.${HTTPD_MPM}