From owner-cvs-all Mon Oct 7 17:31: 1 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6554B37B401; Mon, 7 Oct 2002 17:31:00 -0700 (PDT) Received: from alcanet.com.au (mail3.alcanet.com.au [208.178.117.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id E59B443E6E; Mon, 7 Oct 2002 17:30:58 -0700 (PDT) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp01.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.4/8.12.4/Alcanet1.3) with ESMTP id g97Nmhp3022463; Tue, 8 Oct 2002 09:48:44 +1000 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp01.alcatel.com.au (Lotus Domino Release 5.0.11) with ESMTP id 2002100809484325:8448 ; Tue, 8 Oct 2002 09:48:43 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.5/8.12.5) with ESMTP id g97Nmh2t080752; Tue, 8 Oct 2002 09:48:43 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.5/8.12.5/Submit) id g97NmhuJ080751; Tue, 8 Oct 2002 09:48:43 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Tue, 8 Oct 2002 09:48:42 +1000 From: Peter Jeremy To: John Baldwin Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/sbin/init init.c Message-ID: <20021007234842.GK495@gsmx07.alcatel.com.au> Mail-Followup-To: John Baldwin , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org References: <20021007214019.GA80107@gsmx07.alcatel.com.au> Mime-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.4i X-MIMETrack: Itemize by SMTP Server on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 08/10/2002 09:48:43 AM, Serialize by Router on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 08/10/2002 09:48:44 AM, Serialize complete at 08/10/2002 09:48:44 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-Oct-07 18:44:51 -0400, John Baldwin wrote: >> This means that I could include the following line in /etc/ttys >> proxy2 "/usr/local/libexec/proxy2 -f /usr/local/etc/proxy.ports" none on >> and init would happily run my program (because /dev/proxy2 does not >> exist), restarting it if it died. > >That seems to be a really gross hack. Arbitrary daemons have nothing >to do with setting up ttys. I wouldn't mind if init grew the ability >to handle arbitrary daemons via some other method that was less of a >hack and more of intended design. Would that be acceptable? I agree that using /etc/ttys in this way is somewhat of a hack - but it is a very useful hack and I don't think there's any other way to ensure that an arbitrary process automatically restarts. I'd be happy if init grew this ability in a more controlled manner - though I'm not quite sure how to achieve it. (System V has /etc/inittab but we don't want to grow the rest of the baggage that comes with /etc/inittab). Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message