X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=apache.logrotate;h=2d05b37679755e5e30d1bc5a1c426b2a75324613;hb=3c32885b9c366f46bfe169753459ac24981d96e4;hp=9712044b77bf3405b0744bc58ddc8a81c1822117;hpb=9f698a0837e2701122b2031419927e35317df74f;p=packages%2Fapache.git diff --git a/apache.logrotate b/apache.logrotate index 9712044..2d05b37 100644 --- a/apache.logrotate +++ b/apache.logrotate @@ -6,9 +6,13 @@ /var/log/httpd/*request_log /var/log/httpd/*rewrite_log { - olddir /var/log/archiv/httpd + olddir /var/log/archive/httpd sharedscripts postrotate - /etc/rc.d/init.d/httpd graceful > /dev/null 2>&1 || /bin/true + if /bin/systemd_booted; then + /bin/systemctl reload httpd.service + else + /sbin/service httpd flush-logs > /dev/null + fi endscript }