From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 28 04:37:45 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 74A0616A420 for ; Tue, 28 Feb 2006 04:37:45 +0000 (GMT) (envelope-from flist@stupid.rinet.ru) Received: from relay.rinet.ru (relay.rinet.ru [195.54.192.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id B023C43D45 for ; Tue, 28 Feb 2006 04:37:43 +0000 (GMT) (envelope-from flist@stupid.rinet.ru) Received: from relay.rinet.ru (localhost [127.0.0.1]) by relay.rinet.ru (8.13.3/8.13.3) with ESMTP id k1S4bfYi097839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Feb 2006 07:37:42 +0300 (MSK) (envelope-from flist@stupid.rinet.ru) Received: (from uucp@localhost) by relay.rinet.ru (8.13.3/8.13.3/Submit) with UUCP id k1S4bfvc097838; Tue, 28 Feb 2006 07:37:41 +0300 (MSK) (envelope-from flist@stupid.rinet.ru) Received: (from flist@localhost) by stupid.rinet.ru (8.13.4/8.13.4/Submit) id k1S4QQVm037152; Tue, 28 Feb 2006 07:26:26 +0300 (MSK) (envelope-from flist) Date: Tue, 28 Feb 2006 07:26:26 +0300 From: Alex Semenyaka To: Vitaliy Ovsyannikov Message-ID: <20060228042626.GA35526@stupid.rinet.ru> Mail-Followup-To: Alex Semenyaka , 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.5.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (relay.rinet.ru [0.0.0.0]); Tue, 28 Feb 2006 07:37:42 +0300 (MSK) Cc: freebsd-hackers@freebsd.org 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: Tue, 28 Feb 2006 04:37:45 -0000 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. -- Sincerely, Alex Semenyaka