[lug] linux process supervision
D. Stimits
stimits at idcomm.com
Thu Dec 7 15:30:08 MST 2000
"Ferdinand P. Schmid" wrote:
>
> HI,
> I wrote some scripts and a C++ application for one of my systems that I
> would like to keep running at all times. During my tests for running these
> processes in the background I found that for some reason they sometimes go
> away (crash or die). So here is my question:
>
> Services that are started out of inetd are watched out for by inetd (same
> thing for tcpserver). So if they crash or die inetd restarts them
> immediately. Is there a facility in Linux that I could use to take care of
> my own basic processes that are note internet related? I would of course
> like to do this in a way that is not considered bad style - if there is
> such a thing.
>
> Thanks,
> Ferdinand
>
Someone else already mentioned respawn. You will probably also be
interested in "nohup". Some shells have their own built-in of this, but
there is also a literal command nohup.
More information about the LUG
mailing list