thermald/fix-systemd-service.patch

15 lines
599 B
Diff

--- a/data/thermald.service.in.orig 2021-07-15 09:25:50.933468593 +0200
+++ b/data/thermald.service.in 2021-07-15 09:26:52.193713129 +0200
@@ -6,7 +6,10 @@
Type=dbus
SuccessExitStatus=2
BusName=org.freedesktop.thermald
-ExecStart=@sbindir@/thermald --systemd --dbus-enable --adaptive
+Environment=THERMALD_CONFIG="/etc/thermald/thermal-conf.xml"
+Environment=THERMALD_POLL="4"
+EnvironmentFile=-/etc/sysconfig/thermald
+ExecStart=@sbindir@/thermald --systemd --dbus-enable --adaptive --config-file ${THERMALD_CONFIG} --poll-interval $THERMALD_POLL $THERMALD_OPTS
Restart=on-failure
[Install]