From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 8 12:50:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AE111065672 for ; Tue, 8 Dec 2009 12:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F22628FC20 for ; Tue, 8 Dec 2009 12:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB8Co1ZL048294 for ; Tue, 8 Dec 2009 12:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB8Co14F048293; Tue, 8 Dec 2009 12:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 8 Dec 2009 12:50:01 GMT Resent-Message-Id: <200912081250.nB8Co14F048293@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Viktor Štujber" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1694210656C1 for ; Tue, 8 Dec 2009 12:40:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0567E8FC13 for ; Tue, 8 Dec 2009 12:40:57 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nB8CeuhS044453 for ; Tue, 8 Dec 2009 12:40:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nB8Ceusp044430; Tue, 8 Dec 2009 12:40:56 GMT (envelope-from nobody) Message-Id: <200912081240.nB8Ceusp044430@www.freebsd.org> Date: Tue, 8 Dec 2009 12:40:56 GMT From: "Viktor Štujber" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/141275: dhclient rc script should print something if it fails X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2009 12:50:02 -0000 >Number: 141275 >Category: misc >Synopsis: dhclient rc script should print something if it fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 08 12:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Viktor Štujber >Release: 8.0-STABLE >Organization: >Environment: FreeBSD poring.netvor.sk 8.0-STABLE FreeBSD 8.0-STABLE #1: Fri Nov 27 15:12:20 CET 2009 umage@poring.netvor.sk:/usr/obj/usr/src/sys/PORING i386 >Description: The /etc/rc.d/dhclient script requires an 'interface' parameter to work, and the specified interface needs to be dhcp-enabled to make it actually run the dhclient binary. In the event that the rc script is called without additional parameters, the script should test for that (it doesn't right now) and print meaningful instructions before exiting. Also, I miss the start|stop|restart instruction message. Furthermore, the script invokes the external 'dhcpif' subroutine on the specified interface. If it fails, it should, again, display meaningful information about the problem before exiting. Finally, perhaps a message could be echoed on success, before/after invoking run_rc_command. >How-To-Repeat: Type /etc/rc.d/dhclient >Fix: >Release-Note: >Audit-Trail: >Unformatted: