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