home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.shell:4784 comp.unix.programmer:5351
- Newsgroups: comp.unix.shell,comp.unix.programmer
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!orchard.la.locus.com!prodnet.la.locus.com!locus.com!mjl
- From: mjl@bos.locus.com (Mike Leibensperger)
- Subject: Re: Cron Script to check & auto-restart the died process periodically
- In-Reply-To: spatel@cs.tamu.edu's message of Mon, 16 Nov 1992 21: 38:30 GMT
- Message-ID: <MJL.92Nov18104614@rigel.bos.locus.com>
- Sender: news@locus.com (Netnews)
- Organization: Locus Computing Corp., Boston Massachusetts USA.
- References: <1992Nov16.213830.25277@tamsun.tamu.edu>
- Date: Wed, 18 Nov 1992 15:46:14 GMT
- Lines: 31
-
- In article <1992Nov16.213830.25277@tamsun.tamu.edu> spatel@cs.tamu.edu
- (Samir K Patel) writes:
-
- > We have some system processes running in background to ingest the realtime
- > data from various ports. This processes are started at the boot time by
- > rc.local.
- >
- > Now some time this processes dies due to some errors in the data feed
- > So we need to periodically check that this processes are running and
- > if not we need to restart the process. I think cron can do it but I don't
- > know exactly how to check that process is running or not.
-
- Mach has a program called nanny that is used to start daemons and
- restart 'em when they croak. Perhaps you could ftp the source from
- C-MU and port it. If restarting the processes *immediately* is not a
- bit concern, you could ``kill -0 pid'' from a cron job as someone else
- suggested.
-
- > Samir ( spatel@photon.cs.tamu.edu )
-
- yr obdnt svnt,
- mjl
-
-
-
- --
- Michael J. Leibensperger "Rats and roaches live by competition under the
- Locus Computing/Boston laws of supply and demand; it is the privilege
- 25 Mall Road; Burlington MA of human beings to live under the laws of
- 01803 (617)229-4980 mjl@locus.com justice and mercy." -- Wendell Berry
- Member of the League for Programming Freedom --- write league@prep.ai.mit.edu
-