dhcpd logging

Matt Smith fbsd at xtaz.co.uk
Fri Mar 27 09:24:47 UTC 2015

On Mar 26 11:18, Jim Pazarena wrote:
>I want to place dhcpd log messages in a file rather than the
>syslog facility LOG_DAEMON.
>So I see that with the command line flag "-d" I can direct messages
>to stderr.
>How can I adjust the normal rc.conf to actually TELL the system
>the file name? Is there a way? Also, I would want to append to the
>file via ">>" rather than clobber it every time I reload dhcpd.

As Ben said in the other reply. Why not just use syslog? I do this in 

At the top of the file above all the other lines:


At the bottom of the file below all the other lines:
*.*                                             /var/log/dhcpd.log

This will cause all log lines from dhcpd to go to that file and remove 
them from all of the other files.

And then something like this in /etc/newsyslog.conf:

/var/log/dhcpd.log                                      640 3 * $W6D0

Which will rotate it every week.


More information about the freebsd-questions mailing list