From owner-freebsd-questions Fri Apr 25 00:49:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA00456 for questions-outgoing; Fri, 25 Apr 1997 00:49:39 -0700 (PDT) Received: from relay.krasnet.ru (relay.krasnet.ru [193.125.44.80]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA00444 for ; Fri, 25 Apr 1997 00:49:29 -0700 (PDT) Received: from post.krasnet.ru (post.krasnet.ru [193.125.44.81]) by relay.krasnet.ru (8.7.6/8.7.3) with ESMTP id PAA16068; Fri, 25 Apr 1997 15:52:08 +0800 (KRD) Received: (from uucp@localhost) by post.krasnet.ru (8.7.6/8.7.3) id PAA25580; Fri, 25 Apr 1997 15:48:49 +0800 (KRD) Received: by tpo.krasnoyarsk.su (dMail for DOS v1.23, 15Jun94); Fri, 25 Apr 1997 03:39:09 +0400 To: DWolfe@ZYGA.com Cc: freebsd-questions@freebsd.org References: <01BC4FF0.6D7EC0A0@dans-zyga-pc.zyga.com> Message-Id: Organization: The Territorial Centre for Interurban Communication N 17 Date: Fri, 25 Apr 1997 03:39:09 +0400 (MSD) From: "Oleg M. Golovanov" X-Mailer: dMail [Demos Mail for DOS v1.23] Subject: Re: Cron jobs Lines: 20 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >FreeBSD Users: > >Has anyone written a script to periodically check if a particular process is running, and if not, restart it? > Yes, I did. You must to start from cron table a script which is making "ps ax" and is analizing it. But what you are interested in details ? -- Oleg M. Golovanov System administrator of Interurban Communications Center's Computer Network in Krasnoyarsk Region Phones (3912) 499-622, 435-920 Faxes (3912) 430-570, (095) 241-9142