From 31b1b21814bcb7499ae3f628df20d4bbd3dcdf17 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 18 Oct 2026 18:46:11 +0200 Subject: dhcp: T9108: silence per-run systemd messages of the lease-watch timer The stuck-RENEW watchdog runs as a oneshot every 5 minutes, and each run made systemd log three info-level lines (Starting, Deactivated, Finished), flooding the system log. Cap the unit's log level at notice. The routine start/stop messages are dropped, while the watchdog's own warnings about restarting dhclient and its error messages are still logged. --- src/systemd/vyos-dhclient-lease-watch.service | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/systemd/vyos-dhclient-lease-watch.service b/src/systemd/vyos-dhclient-lease-watch.service index 39b3dae60..0bb240e1a 100644 --- a/src/systemd/vyos-dhclient-lease-watch.service +++ b/src/systemd/vyos-dhclient-lease-watch.service @@ -7,4 +7,7 @@ After=vyos-router.service Type=oneshot ExecStart=/usr/bin/python3 /usr/libexec/vyos/vyos-dhclient-lease-watch SyslogIdentifier=vyos-dhclient-lease-watch +# Drop the info-level Starting/Finished lines PID 1 logs every 5 minutes; +# the helper only logs at warning and above. +LogLevelMax=notice Nice=10 -- cgit v1.2.3