Skip to content

Instantly share code, notes, and snippets.

@fideloper
Last active Dec 29, 2015
Embed
What would you like to do?
Ubuntu Apache Default logrotate config
/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
}
@bhupeshssaladi
Copy link

bhupeshssaladi commented Dec 29, 2015

this code working or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment