[Mongrel] Log rotation

David Vrensk david at vrensk.com
Wed Oct 11 20:16:51 EDT 2006

On 10/11/06, Dee Zsombor <dee.zsombor at gmail.com> wrote:
> David Vrensk wrote:
> > Yes, that would be preferrable.  But all logrotate does is (1) rename
> > the log file and (2, optional) send a signal to the application to let
> > it know that the log file has been renamed, and hence, the application
> > should close its file handle and open a new one.  Rails and Mongrel
> > don't answer to a signal with the semantics of (2) AFAIK.
> The same code you execute upon deploy to bounce your application servers
> can be used to a similar effect, with no more user noticeable downtime (or
> risk) as simple deployment. Just have to configure  logrotate with a
> custom post rotate hook.

Ah yes.  Unfortunately my app runs on a slow VPS, and the restart time is 30
seconds.  So I really want Rails to behave like the other puppies.

But I guess that I should take the question to the rails list since this
isn't a mongrel issue as such.

Thank you all for your help!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061012/5b2c17a8/attachment.html 

More information about the Mongrel-users mailing list