1From 25f4f8793730ef3d170f1f2bd729a82fd61a4784 Mon Sep 17 00:00:00 2001
2From: puneetse <22071208+puneetse@users.noreply.github.com>
3Date: Wed, 11 Mar 2020 09:36:51 -0700
4Subject: [PATCH] Change PIDFile path from /var/run to /run
5
6/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.
7
8Upstream-Status: Backport [25f4f8793730ef3d170f1f2bd729a82fd61a4784]
9
10Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
11---
12 prog/init/fancontrol.service | 2 +-
13 prog/init/sensord.service    | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/prog/init/fancontrol.service b/prog/init/fancontrol.service
17index 3ac1ed02..43293141 100644
18--- a/prog/init/fancontrol.service
19+++ b/prog/init/fancontrol.service
20@@ -5,7 +5,7 @@ After=lm_sensors.service
21
22 [Service]
23 Type=simple
24-PIDFile=/var/run/fancontrol.pid
25+PIDFile=/run/fancontrol.pid
26 ExecStart=/usr/sbin/fancontrol
27
28 [Install]
29diff --git a/prog/init/sensord.service b/prog/init/sensord.service
30index 2448beeb..af2f0ae9 100644
31--- a/prog/init/sensord.service
32+++ b/prog/init/sensord.service
33@@ -5,7 +5,7 @@ After=lm_sensors.service
34 [Service]
35 EnvironmentFile=/etc/sysconfig/sensord
36 Type=forking
37-PIDFile=/var/run/sensord.pid
38+PIDFile=/run/sensord.pid
39 ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
40
41 [Install]
42--
432.17.1
44
45