[CentOS] centos command to monitor a process for exit

Thu Jan 10 23:40:35 UTC 2008
Anup Shukla <anup.shkl at gmail.com>

Jerry Geis wrote:
> Is there a command that will monitor a process for exiting (crash or 
> normal exit) and
> then execute another command based on the said process no longer being 
> active?
> 
> Or is there a "wrapper" command that runs a process and when that 
> process exists
> due to crashing or just exiting normally) that another process can be run.
> 
> Thanks,
> 
> Jerry

Try monit.
http://tildeslash.com/monit/

The link seems to be down.
But the rpm is available on rpmforge and the manpage is excellent.

-- 
Regards,
Anup Shukla