Skip to content

Commit

Permalink
added log rotation for symfony prod.log. fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
0x616469 committed Mar 2, 2012
1 parent 571fac1 commit c652649
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion debian_templates/logrotate
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@
endscript
}

/var/log/sitelogs/_-_PACKAGENAME_-_/cron.log {
/var/log/sitelogs/_-_PACKAGENAME_-_/cron.log /var/www/_-_PACKAGENAME_-_/app/_-_APPNAME_-_/logs/prod.log {
daily
missingok
rotate 30
compress
delaycompress
create 640 www-data 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
}

0 comments on commit c652649

Please sign in to comment.