From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 27 19:34:28 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9001F16A424 for ; Mon, 27 Feb 2006 19:34:28 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5578343D70 for ; Mon, 27 Feb 2006 19:34:27 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (kqkxrlyaj90ah6pb@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id k1RJYPfj039233; Mon, 27 Feb 2006 11:34:25 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id k1RJYOn0039232; Mon, 27 Feb 2006 11:34:24 -0800 (PST) (envelope-from jmg) Date: Mon, 27 Feb 2006 11:34:23 -0800 From: John-Mark Gurney To: Vitaliy Ovsyannikov Message-ID: <20060227193423.GL840@funkthat.com> Mail-Followup-To: Vitaliy Ovsyannikov , freebsd-hackers@FreeBSD.ORG References: <1602933046.20060227174132@kr.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1602933046.20060227174132@kr.ru> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: unversal watchdog X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2006 19:34:28 -0000 Vitaliy Ovsyannikov wrote this message on Mon, Feb 27, 2006 at 17:41 +0700: > I've stuck with the unable to make watchdogs for daemons running via > startup rc-scripts. In linux we can just put the process in the > inittab. Does FreeBSD contains ability like this? yes, you can use ttys(5) for this... You will get an extra argument or two... but a wrapper script can handle that for you... Though you need to have the daemon run in foreground mode, so that when it dies init knows it did, and restarts it... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."