From owner-freebsd-stable@FreeBSD.ORG Wed Nov 15 18:25:45 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 544CE16A403 for ; Wed, 15 Nov 2006 18:25:45 +0000 (UTC) (envelope-from ingom-list@freenet.de) Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id E432343D49 for ; Wed, 15 Nov 2006 18:25:44 +0000 (GMT) (envelope-from ingom-list@freenet.de) Received: from [194.97.50.135] (helo=mx2.freenet.de) by mout0.freenet.de with esmtpa (Exim 4.62) (envelope-from ) id 1GkPSB-0006iE-N4; Wed, 15 Nov 2006 19:25:43 +0100 Received: from p54b18a6e.dip0.t-ipconnect.de ([84.177.138.110]:1462 helo=medion-8800) by mx2.freenet.de with esmtpa (ID ingom-list@freenet.de) (port 25) (Exim 4.62 #12) id 1GkPSB-0000E7-7j; Wed, 15 Nov 2006 19:25:43 +0100 Date: Wed, 15 Nov 2006 19:25:42 +0100 To: "Pietro Cerutti" , freebsd-stable@freebsd.org From: Ingo Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.02 (Win32) Cc: Subject: Re: rc.subr modification: testing and feedback are welcome! X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 18:25:45 -0000 Am 15.11.2006, 14:31 Uhr, schrieb Pietro Cerutti : > Hello List, > I did a patch to allow rc.conf DAEMON_enable values to be decided at > startup. > > 1) set apache_start="ask" in rc.conf > 2) at boot, you'll be prompted with "RC_ASK - Enable apache? [yes|no] " > 3) the daemon is started depending on the decision > 4) the decision is stored until the next boot, so that rc.shutdown can > decide whether to call stop for a particular daemon or not > > See: > http://www.freebsd.org/cgi/query-pr.cgi?pr=105568 > for more information and to download the patch > > > Thanx! > Hello, looks good (and works on my FBSD6.1), in general i like the idea but some more feature would be nice. There should be an tiemout so that the system boots even if I forget to choose (for example if I want to connect to the system by remote, and sshd isnĀ“t startet yet). E.g. something like a global ASK_DELAY="sec" default set to 3sec or so, and adjustable by the variable. (and maybe adjustable for every demon individual) The DAEMON_enable variable should be set to ASK_DY to start after the default timeout and ASK_DN to not start after the timeout. It should also be possible to use the short form [y/n] while booting in addition to yes/no to start the deamon, and when I misstype, the variable should be set to "no" so that there is no errormessage from the rc system. greetings