Compare commits

...

1 Commits

Author SHA1 Message Date
Dustin 47965c0262 roles/dhcpcd: Disable device management module
Today I realized that `dhcpcd` has been logging several hundred thousand
of these messages every second:

    libudev: received NULL device

This was causing both `dhcpcd` and `systemd-journald` to consume 100%
CPU.

I am not entirely sure what a "device management" module is in the
context of `dhcpcd`, but it does not seem to be required. Setting the
`nodev` option in `dhcpcd.conf` suppresses the messages, and seems to
have no effect on the operation of the daemon.
2018-07-18 20:27:05 -05:00
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
# A sample configuration for dhcpcd. # A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details. # See dhcpcd.conf(5) for details.
{% if dhcpcd_nodev %}
# Disable device management to avoid "libudev: received NULL device" log spam
nodev
{% endif %}
# Allow users of this group to interact with dhcpcd via the control socket. # Allow users of this group to interact with dhcpcd via the control socket.
{% if dhcpcd_controlgroup is defined %} {% if dhcpcd_controlgroup is defined %}