From 4f95b49124aa1519ea4e712c673c61922f518222 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Sat, 6 Mar 2021 21:48:35 +0200 Subject: apache: update logrotate to use systemctl calls --- modules/apache/templates/logrotate | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/apache/templates/logrotate b/modules/apache/templates/logrotate index b144b2a2..dec386fe 100644 --- a/modules/apache/templates/logrotate +++ b/modules/apache/templates/logrotate @@ -4,10 +4,7 @@ missingok notifempty compress - prerotate - /etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1 || : - endscript postrotate - /etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1 || : + /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true endscript } -- cgit v1.2.1