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.
This commit is contained in:
puneetse committed 2020-03-11 09:36:51 -07:00
1 parent 248d4a17a5
commit 25f4f87937
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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]
+1 -1
View File
@@ -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]