hostapd.conf explained

Henrik Brix Andersen henrik
Fri Oct 26 09:54:19 PDT 2007

On Fri, Oct 26, 2007 at 02:07:49PM +0200, Hansa wrote:
> On FreeBSD 6.2-RELEASE it's located in /usr/src/contrib/hostapd/hostapd.conf


> This answers the question from my previous mail. I want hostapd to log to
> syslog or a logfile in daemon mode. However, the event logger only logs to
> syslog or stdout when NOT used in background mode. No problem, I will sent
> the program to the background myself replacing the following line in
> /etc/rc.d/hostapd from:
> 	command_args="-B ${conf_file}"
> to:
> 	command_args="${conf_file} 2>&1 > /var/log/hostapd &"
> I still have one other question. I've expected hostapd (NO daemon of course)
> to log to /var/log/messages. However, it's not doing that on my system.
> Hostapd only logs to stdout. Any chance that somebody know why?

No need for such hacks. Leave the rc script as is, and add the
following two lines at the bottom of /etc/syslog.conf:

*.*                                             /var/log/hostapd.log

My /etc/hostapd.conf file contains the following logger settings:


Henrik Brix Andersen <henrik at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 209 bytes
Desc: not available
Url : 

More information about the Hostap mailing list