Skip to content

Instantly share code, notes, and snippets.

@jlav1n
Created August 5, 2015 22:35
Show Gist options
  • Save jlav1n/0d40df61c56c2df32d77 to your computer and use it in GitHub Desktop.
Save jlav1n/0d40df61c56c2df32d77 to your computer and use it in GitHub Desktop.
/etc/logrotate.d/httpd
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
/var/log/httpd/*/logs/*log {
missingok
notifempty
rotate 30
daily
compress
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
/home/*/logs/*log {
missingok
notifempty
rotate 30
daily
compress
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment