<%= shared_path %>/log/*.log { daily missingok rotate 180 compress dateext delaycompress lastaction pid=<%= fetch(:unicorn_pid) %> test -s $pid && kill -USR1 "$(cat $pid)" endscript prerotate if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ run-parts /etc/logrotate.d/httpd-prerotate; \ fi \ endscript postrotate nginx_pid=<%= fetch(:nginx_pid) %> [ ! -f $nginx_pid ] || kill -USR1 `cat $nginx_pid` endscript }