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