Date: Wed, 26 Sep 2007 13:30:27 +0200 (CEST) From: Henrik Brix Andersen <henrik@brixandersen.dk> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Sam Leffler <sam@FreeBSD.org> Subject: conf/116659: [patch] Add reload functionality to /etc/rc.d/hostapd Message-ID: <20070926113027.37F7211428@lothlorien.brixandersen.dk> Resent-Message-ID: <200709261140.l8QBe2TE046988@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070926113027.37F7211428>
