diff options
author | brix <brix@FreeBSD.org> | 2007-11-14 21:19:15 +0000 |
---|---|---|
committer | brix <brix@FreeBSD.org> | 2007-11-14 21:19:15 +0000 |
commit | 2bf11aa6d0d68c09dd37349626b65ab98b726be1 (patch) | |
tree | daf4f91a8989dc78cf97c56973ccedeaebdd8a0c /etc/rc.d/hostapd | |
parent | 1e7c4f0a3f35313c194b0b0704fb21ab49c0d88e (diff) | |
download | FreeBSD-src-2bf11aa6d0d68c09dd37349626b65ab98b726be1.zip FreeBSD-src-2bf11aa6d0d68c09dd37349626b65ab98b726be1.tar.gz |
Add reload functionality.
PR: conf/116659
Approved by: sam, erwin (mentor)
Diffstat (limited to 'etc/rc.d/hostapd')
-rw-r--r-- | etc/rc.d/hostapd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/hostapd b/etc/rc.d/hostapd index b39b971..0dc3971 100644 --- a/etc/rc.d/hostapd +++ b/etc/rc.d/hostapd @@ -14,9 +14,11 @@ 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" |