X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=apache.logrotate;h=2d05b37679755e5e30d1bc5a1c426b2a75324613;hb=0c0ebad8d777e4edc2d7a9788081eed29f3fc69e;hp=060a1b8d3f18653b2e87d805179a87d77f0cf044;hpb=03fa0e1eac0d3851c5ae1ab08a02cc3a5ee4eb69;p=packages%2Fapache.git diff --git a/apache.logrotate b/apache.logrotate index 060a1b8..2d05b37 100644 --- a/apache.logrotate +++ b/apache.logrotate @@ -9,6 +9,10 @@ olddir /var/log/archive/httpd sharedscripts postrotate + if /bin/systemd_booted; then + /bin/systemctl reload httpd.service + else /sbin/service httpd flush-logs > /dev/null + fi endscript }