[lug] linux process supervision

John Hernandez John.Hernandez at noaa.gov
Thu Dec 7 16:07:42 MST 2000


This looks like what you want:

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Process-Monitor-HOWTO.html

Let us know if it really works.

-John

"Atkinson, Chip" wrote:
> 
> Yes indeed it does.  Bash doesn't have the restriction, but Ksh, at least on
> HPUX 10.20 does require that nohup be used to run a process if you wish to
> log out and have it still run.   Once the process dies, it does _not_ get
> restarted automatically when run with nohup.
> 
> Chip
> 
> > -----Original Message-----
> > From: Carl.Wagner at Level3.com [mailto:Carl.Wagner at Level3.com]
> > Sent: Thursday, December 07, 2000 3:48 PM
> > To: lug at lug.boulder.co.us
> > Subject: Re: [lug] linux process supervision
> >
> >
> > Doesn't nohup just prevent the process from dying when its
> > parent process dies
> > (like loging out or "hanging up").  I believe nohup stands
> > for "no hang up".
> >
> > Carl.
> >
> > "D. Stimits" wrote:
> > >
> > > "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.
> > >
> > > _______________________________________________
> > > Web Page:  http://lug.boulder.co.us
> > > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

-- 

John Hernandez, Network Engineer --------------------------------------
US Department of Commerce                             tel: 303-497-6392
NOAA/OAR - Mailstop R/OM12                            fax: 303-497-6005
325 Broadway                            e-mail: John.Hernandez at noaa.gov
Boulder, CO 80303                               http://boulder.noaa.gov
-----------------------------------------------------------------------




More information about the LUG mailing list