From owner-freebsd-questions Thu Mar 28 12:32:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA01559 for questions-outgoing; Thu, 28 Mar 1996 12:32:51 -0800 (PST) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA01550 for ; Thu, 28 Mar 1996 12:32:35 -0800 (PST) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA04496; Thu, 28 Mar 1996 15:31:56 -0500 Date: Thu, 28 Mar 1996 15:31:56 -0500 From: Garrett Wollman Message-Id: <9603282031.AA04496@halloran-eldar.lcs.mit.edu> To: Dave Walton Cc: questions@freebsd.org Subject: Respawn in BSD? In-Reply-To: References: Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk < 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. -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant