32 lines
901 B
Diff
32 lines
901 B
Diff
|
Subject: Fix EnvironmentFile in service files
|
||
|
Upstream: yes, r6181
|
||
|
|
||
|
* EnvironmentFile is mandatory for sensord.
|
||
|
* fancontrol needs no EnvironmentFile.
|
||
|
---
|
||
|
prog/init/fancontrol.service | 1 -
|
||
|
prog/init/sensord.service | 2 +-
|
||
|
2 files changed, 1 insertion(+), 2 deletions(-)
|
||
|
|
||
|
--- a/prog/init/fancontrol.service
|
||
|
+++ b/prog/init/fancontrol.service
|
||
|
@@ -4,7 +4,6 @@ ConditionFileNotEmpty=/etc/fancontrol
|
||
|
After=lm_sensors.service
|
||
|
|
||
|
[Service]
|
||
|
-EnvironmentFile=/etc/sysconfig/lm_sensors
|
||
|
Type=simple
|
||
|
PIDFile=/var/run/fancontrol.pid
|
||
|
ExecStart=/usr/sbin/fancontrol
|
||
|
--- a/prog/init/sensord.service
|
||
|
+++ b/prog/init/sensord.service
|
||
|
@@ -4,7 +4,7 @@ After=lm_sensors.service
|
||
|
After=syslog.target
|
||
|
|
||
|
[Service]
|
||
|
-EnvironmentFile=-/etc/sysconfig/sensord
|
||
|
+EnvironmentFile=/etc/sysconfig/sensord
|
||
|
Type=forking
|
||
|
PIDFile=/var/run/sensord.pid
|
||
|
ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
|