From brix@lothlorien.brixandersen.dk  Wed Sep 26 11:30:28 2007
Return-Path: <brix@lothlorien.brixandersen.dk>
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 <henrik@brixandersen.dk>
Reply-To: Henrik Brix Andersen <henrik@brixandersen.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Sam Leffler <sam@FreeBSD.org>
Subject: [patch] Add reload functionality to /etc/rc.d/hostapd
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         116659
>Category:       conf
>Synopsis:       [patch] Add reload functionality to /etc/rc.d/hostapd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brix
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 26 11:40:01 GMT 2007
>Closed-Date:    Mon Jan 07 21:21:15 UTC 2008
>Last-Modified:  Mon Jan 07 21:21:15 UTC 2008
>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:
Responsible-Changed-From-To: freebsd-bugs->brix 
Responsible-Changed-By: brix 
Responsible-Changed-When: Wed Nov 14 21:17:33 UTC 2007 
Responsible-Changed-Why:  
I'll handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116659 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/116659: commit references a PR
Date: Wed, 14 Nov 2007 21:19:21 +0000 (UTC)

 brix        2007-11-14 21:19:15 UTC
 
   FreeBSD src repository (ports committer)
 
   Modified files:
     etc/rc.d             hostapd 
   Log:
   Add reload functionality.
   
   PR:             conf/116659
   Approved by:    sam, erwin (mentor)
   
   Revision  Changes    Path
   1.2       +3 -1      src/etc/rc.d/hostapd
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: brix 
State-Changed-When: Wed Nov 14 21:27:25 UTC 2007 
State-Changed-Why:  
Applied to -CURRENT 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116659 
State-Changed-From-To: patched->closed 
State-Changed-By: brix 
State-Changed-When: Mon Jan 7 21:19:28 UTC 2008 
State-Changed-Why:  
MFC'ed to RELENG_7 and RELENG_7_0 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116659 
>Unformatted:
