From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: dhcpcd logs Date: Tue, 16 Apr 2019 23:05:46 -0700 Message-ID: <87wojt2mkl.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGdhk-0007Df-3u for help-guix@gnu.org; Wed, 17 Apr 2019 02:05:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGdhi-0006zD-NG for help-guix@gnu.org; Wed, 17 Apr 2019 02:05:56 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:34156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGdhi-0006yU-CI for help-guix@gnu.org; Wed, 17 Apr 2019 02:05:54 -0400 Received: by mail-pg1-x52a.google.com with SMTP id v12so11507944pgq.1 for ; Tue, 16 Apr 2019 23:05:54 -0700 (PDT) In-Reply-To: (znavko's message of "Fri, 5 Apr 2019 12:40:40 +0200 (CEST)") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@tutanota.com Cc: Help Guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable writes: > Where are dhcpcd logs? We start dhcpd as described in gnu/services/networking.scm: (define dhcpd-shepherd-service (match-lambda (($ 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 " daemo= n")) (requirement '(networking)) (start #~(make-forkexec-constructor '(#$(file-append package "/sbin/dhcpd") #$(string-append "-" version) "-lf" #$lease-file "-pf" #$pid-file "-cf" #$config-file #$@interfaces) #: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! =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAly2wjsACgkQ3UCaFdgi Rp3mBw/9GI9r9bSuQswkc5mzV5aoWs+wksZMKQXEXcBhnrCjgBRc7hWzLjTT5XgD d2Z7p0oN1tGT9lUIr+N9PX92xfcCkZvIJZ9OHpE3oj9YXn0MNjGCelcSSNIA2xgr YrcM7pxVVCXlB5eb86wjJTfWOuGWzQ64MOMTJp/2vcBgpOI6DRgyTwhQ3Jm7QfTJ 2edSBwg7yl54ZgV57U0YcyPPvw3/jPYBGBaPj0D1AekuyaYOPSmJf6uJIyuVkPKO SOFXMOIoOtP9Svw6VzDEtb/at1Brc1x5b+418Rl14neQI+GzZkMgttWL741/cYj7 AeYXrsURCJciBGafrn4q21QExmmtKKG1yhTBknURaCEHkl+jdKCA2AqHicfFzdlB shRxXsbStk+QY6wj86yPCkuUOaj0CLVsmeO+JIzkk/OCcmeRjCQGiJgRR5axW063 tC6ziJc6F8fUiiFnFxiFXGtC8UaUTqgxyEw/gs8KYj1Fa1ELWZhe+UO59HuUOHNq L84WXYu7OPQ8oMhqcmgDL1arANrpDtj7zLgD+/kGfLPVDXsPa/bmKnwKUb4STXlJ 6jJzm5be31RXF5Mt+gei8O+6DnUP9bp10N6/1zeosGB23YWCle/AaOLb0r21/W1S VVSkIoeaO57JdKaZR/ZcHUoT1wgph/tN6yN+44s3vkrqHsU0stA= =eaVX -----END PGP SIGNATURE----- --=-=-=--