Last active
December 29, 2015 13:49
-
-
Save fideloper/3982619 to your computer and use it in GitHub Desktop.
Ubuntu Apache Default logrotate config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/apache2/*.log { | |
weekly | |
missingok | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
create 640 root adm | |
sharedscripts | |
postrotate | |
if /etc/init.d/apache2 status > /dev/null ; then \ | |
/etc/init.d/apache2 reload > /dev/null; \ | |
fi; | |
endscript | |
prerotate | |
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ | |
run-parts /etc/logrotate.d/httpd-prerotate; \ | |
fi; \ | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this code working or not?