diff --git a/apache/files/httpsd b/apache/files/httpsd index 5c9dee9..4f82966 100755 --- a/apache/files/httpsd +++ b/apache/files/httpsd @@ -33,7 +33,11 @@ INITLOG_ARGS="" apachectl=/usr/sbin/apachectl httpsd=${HTTPSD-/usr/sbin/httpsd} prog=httpsd -pidfile=${PIDFILE-/var/run/httpsd.pid} +if [ -d /var/run/httpd ]; then + pidfile=${PIDFILE-/var/run/httpd/httpsd.pid} +else + pidfile=${PIDFILE-/var/run/httpsd.pid} +fi lockfile=${LOCKFILE-/var/lock/subsys/httpsd} RETVAL=0