# HG changeset patch # User Pascal Bellard # Date 1436092014 -7200 # Node ID 3954e94bec9b221a62ddc32d7069a4981d87aacc # Parent 7dd80db4b5f97d9d64448a6979e3c242ff9dd146 Apache: fix init script diff -r 7dd80db4b5f9 -r 3954e94bec9b apache/stuff/apache --- a/apache/stuff/apache Sat Jul 04 11:23:16 2015 +0200 +++ b/apache/stuff/apache Sun Jul 05 12:26:54 2015 +0200 @@ -8,13 +8,13 @@ NAME=Apache DESC="Apache Web Server" -DAEMON=/usr/bin/apache +DAEMON=/usr/bin/apachectl OPTIONS= -PIDFILE=/var/run/apache/apache.pid +PIDFILE=/var/run/apache/httpd.pid case "$1" in start) - if active_pidfile $PIDFILE apache ; then + if active_pidfile $PIDFILE httpd ; then echo "$NAME already running." exit 1 fi @@ -23,7 +23,7 @@ status ;; stop) - if ! active_pidfile $PIDFILE apache ; then + if ! active_pidfile $PIDFILE httpd ; then echo "$NAME is not running." exit 1 fi @@ -33,7 +33,7 @@ status ;; reload) - if ! active_pidfile $PIDFILE apache ; then + if ! active_pidfile $PIDFILE httpd ; then echo "$NAME is not running." exit 1 fi @@ -42,7 +42,7 @@ status ;; restart) - if ! active_pidfile $PIDFILE apache ; then + if ! active_pidfile $PIDFILE httpd ; then echo "$NAME is not running." exit 1 fi