From 4320b5fca93fa96713e088148bf76e667f235d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 8 Jan 2010 01:34:15 +0200 Subject: [PATCH] Fixed apache::sslserver init script to work on Fedora. --- apache/files/httpsd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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