From owner-freebsd-questions Thu Mar 28 12:38:29 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA01993 for questions-outgoing; Thu, 28 Mar 1996 12:38:29 -0800 (PST) Received: from psiint.com (vv.psiint.com [204.189.53.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA01984 for ; Thu, 28 Mar 1996 12:38:25 -0800 (PST) Received: by psiint.com (8.6.12/4.03) id MAA67595; Thu, 28 Mar 1996 12:38:24 -0800 Date: Thu, 28 Mar 1996 12:38:23 -0800 (PST) From: Dave Walton To: Garrett Wollman cc: questions@freebsd.org Subject: Re: Respawn in BSD? In-Reply-To: <9603282031.AA04496@halloran-eldar.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 28 Mar 1996, Garrett Wollman wrote: > < said: > > > In the System V inittab file, you can give the 'respawn' keyword so that > > if the given process ever dies, init will automatically restart it. I've > > seen this used to ensure that cron is alway running, for example. > > > How is it possible to do this in FreeBSD? Processes listed in /etc/ttys > > are restarted, but that's for getty and friends, and isn't really > > appropriate for cron, etc. > > By writing programs that don't have bugs in them causing random > crashes. Of course. And all my programs are written this well. :) But it's possible for processes to die from external causes, even if it's something as simple as a super-user making a typo in a kill command. It would seem to make sense to have some way of automatically recovering from something like this. Are you saying that it's not possible in BSD? Dave ========================================================================== David Walton Unix Programmer PSI INTERNATIONAL, Inc. email: dwalton@psiint.com 190 South Orchard #C200 Fax :(707)451-6484 Vacaville, CA 95688 Phone:(707)451-3503 ==========================================================================