Package: fancontrol
Version: 1:3.6.0-2
Severity: minor
Tags: patch

The fancontrol systemd unit has its PIDFile set to a path in /var/run.
Neither systemd nor Debian supports systems where /var/run is not a
symlink to /run, so systemd canonicalizes the path with a warning, causing
system log noise during boot:

Nov 01 09:17:07 espresso systemd[1]: /lib/systemd/system/fancontrol.service:11: 
PIDFile= references a path below legacy directory /var/run/, updating 
/var/run/fancontrol.pid → /run/fancontrol.pid; please update the unit file 
accordingly.

The obvious patch should silence this:

----8<----
diff -ru lm-sensors-3.6.0/debian/fancontrol.service 
lm-sensors-3.6.0-patched/debian/fancontrol.service
--- lm-sensors-3.6.0/debian/fancontrol.service  2013-06-29 14:43:11.000000000 
+0100
+++ lm-sensors-3.6.0-patched/debian/fancontrol.service  2020-11-01 
09:36:45.648902567 +0000
@@ -8,7 +8,7 @@
 [Service]
 ExecStartPre=/usr/sbin/fancontrol --check
 ExecStart=/usr/sbin/fancontrol
-PIDFile=/var/run/fancontrol.pid
+PIDFile=/run/fancontrol.pid

 [Install]
 WantedBy=multi-user.target
----8<----

Thanks,
    smcv

Reply via email to