From 3a030c6b13a84e99faacbc78618a590101db28ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Wed, 9 Nov 2011 08:57:32 +0200 Subject: [PATCH] Fixed www-logrotate.sh for CentOS 6. --- apache/files/www-logrotate.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apache/files/www-logrotate.sh b/apache/files/www-logrotate.sh index 9191ae4..4490eff 100755 --- a/apache/files/www-logrotate.sh +++ b/apache/files/www-logrotate.sh @@ -39,12 +39,16 @@ fi if [ -r /var/run/httpd.pid ]; then HTTPDPID=`cat /var/run/httpd.pid` +elif [ -r /var/run/httpd/httpd.pid ]; then + HTTPDPID=`cat /var/run/httpd/httpd.pid` elif [ -r /var/run/apache2.pid ]; then HTTPDPID=`cat /var/run/apache2.pid` fi if [ -r /var/run/httpsd.pid ]; then HTTPSDPID=`cat /var/run/httpsd.pid` +elif [ -r /var/run/httpd/httpsd.pid ]; then + HTTPSDPID=`cat /var/run/httpd/httpsd.pid` fi signalapache() {