From owner-freebsd-questions Thu Mar 28 12:18:31 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA00319 for questions-outgoing; Thu, 28 Mar 1996 12:18:31 -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 MAA00309 for ; Thu, 28 Mar 1996 12:18:27 -0800 (PST) Received: by psiint.com (8.6.12/4.03) id MAA67803; Thu, 28 Mar 1996 12:18:16 -0800 Date: Thu, 28 Mar 1996 12:18:16 -0800 (PST) From: Dave Walton To: questions@freebsd.org Subject: Respawn in BSD? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. 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 ==========================================================================