From 9691ca3977a909cfc90574406cc93cad1a50438a Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 30 Mar 2011 12:52:10 +0300 Subject: [PATCH] Fixed www-logrotate.sh for Ubuntu. --- apache/files/www-logrotate.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apache/files/www-logrotate.sh b/apache/files/www-logrotate.sh index f9b96d6..9191ae4 100755 --- a/apache/files/www-logrotate.sh +++ b/apache/files/www-logrotate.sh @@ -37,8 +37,15 @@ else LSOF=lsof fi -[ -r /var/run/httpd.pid ] && HTTPDPID=`cat /var/run/httpd.pid` -[ -r /var/run/httpsd.pid ] && HTTPSDPID=`cat /var/run/httpsd.pid` +if [ -r /var/run/httpd.pid ]; then + HTTPDPID=`cat /var/run/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` +fi signalapache() {