diff options
Diffstat (limited to '')
-rw-r--r-- | debian/apache2.logrotate | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/apache2.logrotate b/debian/apache2.logrotate new file mode 100644 index 0000000..6da4ef8 --- /dev/null +++ b/debian/apache2.logrotate @@ -0,0 +1,20 @@ +/var/log/apache2/*.log { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then + run-parts /etc/logrotate.d/httpd-prerotate + fi + endscript + postrotate + if pgrep -f ^/usr/sbin/apache2 > /dev/null; then + invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate + fi + endscript +} |