Skip to content

Instantly share code, notes, and snippets.

@e1senh0rn
Created February 21, 2012 12:05
Show Gist options
  • Select an option

  • Save e1senh0rn/1876136 to your computer and use it in GitHub Desktop.

Select an option

Save e1senh0rn/1876136 to your computer and use it in GitHub Desktop.
root@tankbusta:~# cat /etc/logrotate.d/apache2
/var/log/apache2/*.log
/var/www/*/logs/*-access.log
/var/www/*/logs/*-error.log
/var/www/*/www/*/log/production.log
/var/www/*/www/*/log/development.log {
daily
missingok
rotate 10
compress
delaycompress
notifempty
copytruncate
# create 640 root adm
# sharedscripts
# postrotate
# if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
# /etc/init.d/apache2 reload > /dev/null
# fi
# endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment