From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 2 05:22:42 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 B518D16A420 for ; Thu, 2 Mar 2006 05:22:42 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E3D943D46 for ; Thu, 2 Mar 2006 05:22:42 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k225Jt34012431; Wed, 1 Mar 2006 22:19:55 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 01 Mar 2006 22:20:03 -0700 (MST) Message-Id: <20060301.222003.10965664.imp@bsdimp.com> To: flist@jabberwock.rinet.ru From: "M. Warner Losh" In-Reply-To: <20060228042626.GA35526@stupid.rinet.ru> References: <1602933046.20060227174132@kr.ru> <20060228042626.GA35526@stupid.rinet.ru> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 01 Mar 2006 22:20:01 -0700 (MST) Cc: freebsd-hackers@freebsd.org, V.Ovsyannikov@kr.ru Subject: Re: unversal watchdog X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2006 05:22:42 -0000 In message: <20060228042626.GA35526@stupid.rinet.ru> Alex Semenyaka writes: : On Mon, Feb 27, 2006 at 05:41:32PM +0700, Vitaliy Ovsyannikov wrote: : > Hello, freebsd-hackers. : > 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? : : You can do it with /etc/ttys. Actually this point is missing by many : FreeBSD administrators, people just think of /etc/ttys in term of : terminals and stuff :) But if youi'll open the man page you would : found the following: : : The first field is normally the name of the terminal special file as it : is found in /dev. However, it can be any arbitrary string when the asso- : ciated command is not related to a tty. : : So you can perfectly run any program there and init will watch or it, just : like in linux. The behavior goes back to at least 4.2 BSD (not FreeBSD 4.2, but 4.2 BSD). I've used it on old SunOS 3.x boxes too... Warner