[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dhcpcd logs
From: |
Chris Marusich |
Subject: |
Re: dhcpcd logs |
Date: |
Tue, 16 Apr 2019 23:05:46 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
<address@hidden> writes:
> Where are dhcpcd logs?
We start dhcpd as described in gnu/services/networking.scm:
(define dhcpd-shepherd-service
(match-lambda
(($ <dhcpd-configuration> package config-file version run-directory
lease-file pid-file interfaces)
(unless config-file
(error "Must supply a config-file"))
(list (shepherd-service
;; Allow users to easily run multiple versions simultaneously.
(provision (list (string->symbol
(string-append "dhcpv" version "-daemon"))))
(documentation (string-append "Run the DHCPv" version " daemon"))
(requirement '(networking))
(start #~(make-forkexec-constructor
'(#$(file-append package "/sbin/dhcpd")
#$(string-append "-" version)
"-lf" #$lease-file
"-pf" #$pid-file
"-cf" #$config-file
address@hidden)
#:pid-file #$pid-file))
(stop #~(make-kill-destructor)))))))
I checked the manual page for dhcpd ("man dhcpd"). None of those
options (-4, -lf, -pf, -cf) seem to tell dhcpd to change the way it
emits logs. However, -cf tells it to look at a config file, which might
change the way it behaves. What dhcpd config are you using?
By default, according to the manual, dhcpd emits logs to syslog:
"Normally, dhcpd will log all output using the syslog(3) function with
the log facility set to LOG_DAEMON."
Have you customized the syslog config at all? By default, it is the
following (defined in gnu/services/base.scm):
;; Snippet adapted from the GNU inetutils manual.
(define %default-syslog.conf
(plain-file "syslog.conf" "
# Log all error messages, authentication messages of
# level notice or higher and anything of level err or
# higher to the console.
# Don't log private authentication messages!
*.alert;auth.notice;authpriv.none /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none /var/log/messages
# Like /var/log/messages, but also including \"debug\"-level logs.
*.debug;mail.none;authpriv.none /var/log/debug
# Same, in a different place.
*.info;mail.none;authpriv.none /dev/tty12
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* /var/log/maillog
"))
It might be good to check all of the places mentioned above, to see if
you can find the logs. It looks like the "daemon" log facility might
get sent to different locations depending on the severity.
I hope that helps!
--
Chris
signature.asc
Description: PGP signature