X-Git-Url: https://git.tld-linux.org/?p=packages%2Fapache.git;a=blobdiff_plain;f=apache.logrotate;h=2d05b37679755e5e30d1bc5a1c426b2a75324613;hp=060a1b8d3f18653b2e87d805179a87d77f0cf044;hb=45dd0a09984de9c699f66d58cb994b63b5188790;hpb=b41c8835fb30635cf45c0a6921ebc6bbcadfcd2d 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 }