zerosum dirt(nap)

evolution through a series of accidents

zerosum dirt(nap)

Drop A PID For Monit

November 06, 2007 by nap · Comments

If you ever need to drop a pid from a Ruby process it’s dead simple:'', 'w') { |f| f.write( }

Now you can use Monit to keep Sinatra alive, for instance ;-). Monit is great for monitoring UN*X processes and keeping them running under ideal conditions, and that means it’s great for Mongrel, and anything that runs through Mongrel. Monit can even check the memory consumption of your application and restart it if it seems to be leaking. Not that that ever happens, of course.

blog comments powered by Disqus