Anybody that reads weblogs from the Rails community has probably by now listened to about God. No, not the deity in the sky, but an superb monitoring application that watches your procedures and retains them jogging. I’ve largely noticed it utilised for taming mongrel but it can be utilized to keep track of any process.
We’re functioning God for all our managed internet hosting purchasers to make absolutely sure their mongrels don’t pass out from exhaustion. It really is held up excellent so significantly. See the assets at the end of this short article for our init script and a sample world config.
The God configuration file should really be self explanatory. It’s just Ruby code, very little magic going on there. I’ve just wrapped the main God.enjoy code around some loops to help help for monitoring an unrestricted amount of programs. 1 smaller be aware about the init.d script: it to start with launches God, and then hundreds the config file via the ‘god load’ command. I’m knowledgeable that you can ship god the -c parameter when launching it, but I have observed that from time to time (seemingly randomly) that would not load the config.
The init.d script really should do the job good on any RHEL/CentOS system. As soon as you include the file to /and many others/init.d/god just do:
chmod +x /etcetera/init.d/godchkconfig --incorporate god
chkconfig --amount 345 god on
/and so on/init.d/god start out
Now you’re very good to go. Permit individuals misbehaving K-9 devils do their greatest – they’re no match for God.
Below are a couple means applicable to this report:
- God
- Integral Impressions managed internet hosting company [http://integralimpressions.com/services/managed-rails-hosting]
- /and many others/init.d/god
- /and so on/god.conf
