]> TLD Linux GIT Repositories - packages/apache.git/blobdiff - apache.logrotate
- merged 2.4.28 from PLD, TLDized
[packages/apache.git] / apache.logrotate
index 27ebbe548d6bd2a1204acfecad5f4bd72c5848cc..2d05b37679755e5e30d1bc5a1c426b2a75324613 100644 (file)
@@ -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
 }