On Thu, Feb 14, 2008 at 11:29 AM, Sean Brown <[EMAIL PROTECTED]> 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
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to