Iron_Man wrote: > It may be useful to use the command: 'ps aux'. This command will > display a list of all the currently running processes. You could run > this manually every so often and then check the output to make sure > that none of the processes are missing; or you could write a script > that checks every so often, checks for the processes that you want to > check for, and then notifies you are leaves a log of which services > aren't running. Hope this is helpful.
So something like
if ![ ps aux | grep "mongrel_rails" ]
# start mongrel rails command
endif
if ![ ps aux | grep "sendmail" ]
/etc/init.d/sendmail start
endif
and so on and so forth (forgive my obviously malformed bash if statements).
That would work in cron.minutely I suppose. It's more or less what I do
with top whenever something isn't working as hoped.
--
Registered Linux Addict #431495
http://profile.xfire.com/mrstalinman | John 3:16!
http://www.fsdev.net/ | http://lordsauron.wordpress.com/
signature.asc
Description: OpenPGP digital signature
