Last Updated: February 25, 2016
·
824
· rshetty

God for Process Monitoring

God is a process monitoring framework developed by Tom Preston Werner of Github (@mojombo on github). It is one of the awesomest gems out there for monitoring processes in your server.

Install God Gem as

$ [sudo] gem install god

Create a .god config file which basically describes the processes to be monitored and more.

An example .god file
https://gist.github.com/rajeev-sourcebits/f1b95de7ad614176459d

After adding configuration settings to your .god file, You can start your god using

god -c /path/to/god 

This command will make the god run as demonized process monitoring your processes.

God takes care of restarting your processes if they fail and much more.

God is Great.