dhcpd logging
Ben Woods
woodsb02 at gmail.com
Fri Mar 27 00:32:57 UTC 2015
Why not continue to use syslog, but tell it to log dhcpd to a separate log
file? Just add these two lines at the bottom of your /etc/syslog.conf
(above the !* line):
!dhcpd
*.* /var/log/dhcpd.log
More information is in syslog.conf(5) man page, or here:
https://www.freebsd.org/doc/en/books/handbook/configtuning-syslog.html
Regards,
Ben
On Fri, 27 Mar 2015 at 2:23 am Jim Pazarena <fquest at paz.bz> 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.
>
> Thanks !
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe
> @freebsd.org"
>
More information about the freebsd-questions
mailing list