[wplug] Need suggestion on how to respawn/restart program

Eric Cooper ecc at cmu.edu
Thu May 25 20:44:18 EDT 2006


On Thu, May 25, 2006 at 08:23:12PM -0400, Robert E. Coutch wrote:
> Normally when I want a program to run and never die I just put it
> into inittab as a respawn.
> 
> I would like something I can have a bit more control over.
> I want to be able to control a program (start/stop) but also have it 
> automatically restart if it dies.
> 
> Similar to FireDeamon (on Windows) does.
> 
> I'm sure I could do an init script for the start/stop but how should
> the auto restart be done?  Monitor the PID?
> 
> Perhaps there is already an easy solution out there?

I haven't used this myself, but it looks like it fits the bill:
    http://www.libslack.org/daemon/
(It's available in Debian as "daemon".)

-- 
Eric Cooper             e c c @ c m u . e d u


More information about the wplug mailing list