Blame SOURCES/0001-Change-PIDFile-path-from-var-run-to-run.patch

c9a32a
From 25f4f8793730ef3d170f1f2bd729a82fd61a4784 Mon Sep 17 00:00:00 2001
c9a32a
From: puneetse <22071208+puneetse@users.noreply.github.com>
c9a32a
Date: Wed, 11 Mar 2020 09:36:51 -0700
c9a32a
Subject: [PATCH] Change PIDFile path from /var/run to /run
c9a32a
c9a32a
/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.
c9a32a
---
c9a32a
 prog/init/fancontrol.service | 2 +-
c9a32a
 prog/init/sensord.service    | 2 +-
c9a32a
 2 files changed, 2 insertions(+), 2 deletions(-)
c9a32a
c9a32a
diff --git a/prog/init/fancontrol.service b/prog/init/fancontrol.service
c9a32a
index 3ac1ed02..43293141 100644
c9a32a
--- a/prog/init/fancontrol.service
c9a32a
+++ b/prog/init/fancontrol.service
c9a32a
@@ -5,7 +5,7 @@ After=lm_sensors.service
c9a32a
 
c9a32a
 [Service]
c9a32a
 Type=simple
c9a32a
-PIDFile=/var/run/fancontrol.pid
c9a32a
+PIDFile=/run/fancontrol.pid
c9a32a
 ExecStart=/usr/sbin/fancontrol
c9a32a
 
c9a32a
 [Install]
c9a32a
diff --git a/prog/init/sensord.service b/prog/init/sensord.service
c9a32a
index 2448beeb..af2f0ae9 100644
c9a32a
--- a/prog/init/sensord.service
c9a32a
+++ b/prog/init/sensord.service
c9a32a
@@ -5,7 +5,7 @@ After=lm_sensors.service
c9a32a
 [Service]
c9a32a
 EnvironmentFile=/etc/sysconfig/sensord
c9a32a
 Type=forking
c9a32a
-PIDFile=/var/run/sensord.pid
c9a32a
+PIDFile=/run/sensord.pid
c9a32a
 ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
c9a32a
 
c9a32a
 [Install]
c9a32a
-- 
c9a32a
2.25.4
c9a32a