From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 26 11:40:02 2007 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 647E016A41B for ; Wed, 26 Sep 2007 11:40: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 44C5313C455 for ; Wed, 26 Sep 2007 11:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8QBe28M046989 for ; Wed, 26 Sep 2007 11:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8QBe2TE046988; Wed, 26 Sep 2007 11:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 26 Sep 2007 11:40:02 GMT Resent-Message-Id: <200709261140.l8QBe2TE046988@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, Henrik Brix Andersen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6931916A468; Wed, 26 Sep 2007 11:30:28 +0000 (UTC) (envelope-from brix@lothlorien.brixandersen.dk) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id 4AC2813C46A; Wed, 26 Sep 2007 11:30:28 +0000 (UTC) (envelope-from brix@lothlorien.brixandersen.dk) Received: from lothlorien.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by solow.pil.dk (Postfix) with ESMTP id 822941CC0F7; Wed, 26 Sep 2007 13:30:27 +0200 (CEST) Received: by lothlorien.brixandersen.dk (Postfix, from userid 1001) id 37F7211428; Wed, 26 Sep 2007 13:30:27 +0200 (CEST) Message-Id: <20070926113027.37F7211428@lothlorien.brixandersen.dk> Date: Wed, 26 Sep 2007 13:30:27 +0200 (CEST) From: Henrik Brix Andersen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Sam Leffler Subject: conf/116659: [patch] Add reload functionality to /etc/rc.d/hostapd X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Henrik Brix Andersen List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2007 11:40:02 -0000 >Number: 116659 >Category: conf >Synopsis: [patch] Add reload functionality to /etc/rc.d/hostapd >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: Wed Sep 26 11:40:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Henrik Brix Andersen >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD lothlorien.brixandersen.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #73: Mon Sep 24 14:11:27 CEST 2007 root@lothlorien.brixandersen.dk:/usr/obj/usr/src/sys/LOTHLORIEN i386 >Description: Add reload functionality to /etc/rc.d/hostapd, useful for reloading the configuration when new WPA passphrases etc. are added. >How-To-Repeat: >Fix: --- hostapd-reload.diff begins here --- --- etc/rc.d/hostapd.orig 2007-09-26 12:10:56.000000000 +0200 +++ etc/rc.d/hostapd 2007-09-26 12:12:01.000000000 +0200 @@ -14,9 +14,12 @@ command="/usr/sbin/${name}" rcvar=`set_rcvar` conf_file="/etc/${name}.conf" +pidfile="/var/run/${name}.pid" -command_args="-B ${conf_file}" +command_args="-P ${pidfile} -B ${conf_file}" required_files="${conf_file}" +extra_commands="reload" + load_rc_config ${name} run_rc_command "$1" --- hostapd-reload.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: