From owner-freebsd-questions Thu Mar 28 15:00:40 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA15737 for questions-outgoing; Thu, 28 Mar 1996 15:00:40 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id PAA15732 for ; Thu, 28 Mar 1996 15:00:37 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id JAA18215; Fri, 29 Mar 1996 09:50:28 +1030 From: Michael Smith Message-Id: <199603282320.JAA18215@genesis.atrad.adelaide.edu.au> Subject: Re: Respawn in BSD? To: dwalton@psiint.com (Dave Walton) Date: Fri, 29 Mar 1996 09:50:27 +1030 (CST) Cc: questions@FreeBSD.ORG In-Reply-To: from "Dave Walton" at Mar 28, 96 12:18:16 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Dave Walton stands accused of saying: > > 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. Sounds like a panacea for crappy daemons. Cron doesn't die under FreeBSD, and everything else can be checked and restarted with it if you have problems. > 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. Why not? I run xdm out of /etc/ttys... > David Walton Unix Programmer -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[