[Mongrel] Rotating mongrel production logs
Nate Vack
njvack at wisc.edu
Thu Feb 14 14:08:57 EST 2008
On Thu, Feb 14, 2008 at 11:29 AM, Sean Brown <seanmichaelbrown at gmail.com> wrote:
> postrotate
> for i in `ls /path/to/rails/root/shared/log/mongrel*.pid`; do
> kill -USR2 `cat $i`
> done
> endscript
> Incidentally, we also use monit to monitor our various processes
> (mongrel, Apache, ferretDRb MySQL, etc), so if for some odd reason
> this log rotation would not bring one of our mongrels back up cleanly,
> we'd be alerted and monit would try to restart it.
Why not ask monit to restart your mongrels? It seems kind of nice to
have monit be the only guy in town touching the processes it
monitors.... but maybe there's a technical reason why not?
-Nate
More information about the Mongrel-users
mailing list