Changeset 492

Show
Ignore:
Timestamp:
06/04/08 00:39:26 (6 months ago)
Author:
mbailey
Message:

'kill -USR2' the mongrels after rotation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/deprec/templates/mongrel/logrotate.conf.erb

    r489 r492  
    11/var/www/apps/<%= application %>/shared/log/production.log /var/www/apps/<%= application %>/shared/log/mongrel.*.log { 
    2           daily 
    3           missingok 
    4           compress 
    5           rotate 12 
    6           notifempty 
    7           dateext 
    8           extension gz 
    9           copytruncate 
     2  daily 
     3  rotate 14 
     4  dateext 
     5  missingok 
     6  compress 
     7  sharedscripts 
     8  postrotate 
     9    for i in `ls /var/www/apps/<%= application %>/shared/pids/mongrel.*.pid`; do 
     10      kill -USR2 `cat $i` 
     11    done 
     12  endscript 
    1013} 
    1114