Rotate master logs before workers.
commit46681f6ffd71b0902801f728f8911b02f3f09e1e
authorEric Wong <normalperson@yhbt.net>
Sat, 21 Mar 2009 20:14:33 +0000 (21 13:14 -0700)
committerEric Wong <normalperson@yhbt.net>
Sat, 21 Mar 2009 20:38:25 +0000 (21 13:38 -0700)
tree8917605a5f4c55fff56b516a060b31c2aaab852a
parent90e68ef4d28615887e3a102e2233ceb46509f272
Rotate master logs before workers.

The master _may_ run with different user/group/umask than the
workers.  Since the logs were always created by the master
process, the master should rotate them first to ensure correct
ownership and permissions.

This way if the workers fail log rotation and die, they'll
be automatically respawned with the new logs in place.
lib/unicorn.rb
test/exec/test_exec.rb