"watchdog" for a process?

John Pyper jpyper at gmail.com
Sat Sep 22 01:08:47 UTC 2007


On 9/19/07, Bart Silverstrim <bsilver at chrononomicon.com> wrote:
> Is there a quick and short script, maybe something that can be run in
> Cron, that will look at the process list and if a process has been
> killed or had died will restart the process?

I'm not sure if what I have in mind is what you are looking for, but I
use a program called monit[1], and it serves me very well for the
Linux boxes I have at home and at work. Getting it to work properly
with Upstart[2] was a bit of a pain, but it can run in a standard
daemon mode like most other 'services'. monit can be installed via
'sudo aptitude install monit' and the configuration files reside in
/etc/monit.

[1]: http://tildeslash.com/monit/
[2]: http://upstart.ubuntu.com/

-- 
John Pyper
Material Handler - Auburn Team
RMS Computer Corp.
Dell | Managed Print Services
http://mps.web.boeing.com/




More information about the ubuntu-users mailing list