summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuneetse <22071208+puneetse@users.noreply.github.com>2020-03-11 09:36:51 -0700
committerpuneetse <22071208+puneetse@users.noreply.github.com>2020-03-11 09:36:51 -0700
commit25f4f8793730ef3d170f1f2bd729a82fd61a4784 (patch)
tree470961e1610c15afc6a581039eb01db68e6ad640
parent248d4a17a59cd3366f5594a360353997571e0b68 (diff)
downloadlm-sensors-git-25f4f8793730ef3d170f1f2bd729a82fd61a4784.tar.gz
Change PIDFile path from /var/run to /run
/var/run is considered a legacy directory by systemd 239+ and having it in unit files causes a warning to be emitted to the journal.
-rw-r--r--prog/init/fancontrol.service2
-rw-r--r--prog/init/sensord.service2
2 files changed, 2 insertions, 2 deletions
diff --git a/prog/init/fancontrol.service b/prog/init/fancontrol.service
index 3ac1ed02..43293141 100644
--- a/prog/init/fancontrol.service
+++ b/prog/init/fancontrol.service
@@ -5,7 +5,7 @@ After=lm_sensors.service
[Service]
Type=simple
-PIDFile=/var/run/fancontrol.pid
+PIDFile=/run/fancontrol.pid
ExecStart=/usr/sbin/fancontrol
[Install]
diff --git a/prog/init/sensord.service b/prog/init/sensord.service
index 2448beeb..af2f0ae9 100644
--- a/prog/init/sensord.service
+++ b/prog/init/sensord.service
@@ -5,7 +5,7 @@ After=lm_sensors.service
[Service]
EnvironmentFile=/etc/sysconfig/sensord
Type=forking
-PIDFile=/var/run/sensord.pid
+PIDFile=/run/sensord.pid
ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
[Install]