From ac16ad863e29374ae33efa40f561c57b2f43a3a3 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 26 Oct 2016 15:16:37 +0300 Subject: [PATCH] apache: Fix log rotation on Ubuntu --- apache/files/www-logrotate.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apache/files/www-logrotate.sh b/apache/files/www-logrotate.sh index 4490eff..7e06ffc 100755 --- a/apache/files/www-logrotate.sh +++ b/apache/files/www-logrotate.sh @@ -41,6 +41,8 @@ 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/apache2.pid ]; then + HTTPDPID=`cat /var/run/apache2/apache2.pid` elif [ -r /var/run/apache2.pid ]; then HTTPDPID=`cat /var/run/apache2.pid` fi