View Single Post

  #7  
Old 06-30-2008, 05:15 AM
Default Re: How to get an "alert" when a process dies

nicc777 writes:

> Is there a way to trigger an event (like running a script) when a
> process dies? Perhaps even a script to restart a process if it detects
> that it's dead?
>
> I have been using cron for monitoring processes up to now, but the
> monitoring interval is 1 minute apart. I have a project (streaming of
> nature) that should not go down, but the problem is that sometimes it
> dies and it takes up to a minute before the traditional monitoring
> script will restart it.


See http://upstart.ubuntu.com

In the end you are looking for some sort of process supervisor.
Reply With Quote