From owner-freebsd-rc@FreeBSD.ORG Sat Feb 25 13:22:34 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BA7416A420 for ; Sat, 25 Feb 2006 13:22:34 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from mailhub04.unibe.ch (mailhub04.unibe.ch [130.92.9.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F07543D45 for ; Sat, 25 Feb 2006 13:22:33 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from localhost (scanhub01-eth0.unibe.ch [130.92.254.65]) by mailhub04.unibe.ch (Postfix) with ESMTP id 28BC211B94; Sat, 25 Feb 2006 14:22:32 +0100 (CET) Received: from mailhub04.unibe.ch ([130.92.9.71]) by localhost (scanhub01.unibe.ch [130.92.254.65]) (amavisd-new, port 10024) with LMTP id 30616-03-68; Sat, 25 Feb 2006 14:22:30 +0100 (CET) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub04.unibe.ch (Postfix) with ESMTP id 5B8951C242; Sat, 25 Feb 2006 14:22:30 +0100 (CET) Received: from droopy.unibe.ch (droopy [130.92.64.20]) by asterix.unibe.ch (8.12.10+Sun/8.12.10) with ESMTP id k1PDMU8Z014304; Sat, 25 Feb 2006 14:22:30 +0100 (MET) Received: (from roth@localhost) by droopy.unibe.ch (8.12.10+Sun/8.12.9/Submit) id k1PDMQov027418; Sat, 25 Feb 2006 14:22:26 +0100 (MET) Date: Sat, 25 Feb 2006 14:22:26 +0100 From: Tobias Roth To: Brooks Davis Message-ID: <20060225132226.GA27397@droopy.unibe.ch> References: <20060221023750.GA32185@odin.ac.hmc.edu> <20060221045324.8717645048@ptavv.es.net> <20060221075140.GA9101@droopy.unibe.ch> <20060221212818.GA22713@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060221212818.GA22713@odin.ac.hmc.edu> User-Agent: Mutt/1.4i X-message-flag: Warning! Using Outlook is insecure and promotes virus distribution. Please use a different email client. X-Virus-checked: by University of Berne Cc: freebsd-rc@freebsd.org Subject: Re: dhclient existing when run early in startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 13:22:34 -0000 On Tue, Feb 21, 2006 at 01:28:18PM -0800, Brooks Davis wrote: > > Possible improvements: > > 1) change dhclient to accept a timeout on the commandline > > This would be a useful addon. Actually, I'd like to see both the option > to specify a shorter one and the option to keep trying forever since > that's what's wanted in some scenerios. I've implemented the two switches -i and -t, that override the variables from dhclient.conf 'retry' and 'timeout'. The patch can be found here: http://fsck.ch/dhclient_timeouts.diff As it looks, the OpenBSD dhclient tries to be consistent with the naming of the switches with isc-dhclient, as much as it's possible (ie -lf has been changed to -l). Since -r is alrteady taken in isc-dhcp (release current lease and exit), I opted for -i to specify the retry interval. I'd also like to do a switch that tells dhclient to only try once, and then exit, similar to the -1 of isc-dhclient. I'll look into it later. What do you mean with "keep trying forever"? As I see it, dhclient already tries forever, as it never exists. Do short enough timeouts already cover your scenario? Thanks, Tobias