Description: Source /etc/default/thinkfan for systemd unit
Author: Evgeni Golov <evgeni@debian.org>
Forwarded: not-needed
Last-Update: 2023-01-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/rcscripts/systemd/thinkfan.service.cmake
+++ b/rcscripts/systemd/thinkfan.service.cmake
@@ -6,7 +6,8 @@
 
 [Service]
 Type=forking
-ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/thinkfan $THINKFAN_ARGS
+EnvironmentFile=-/etc/default/thinkfan
+ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/thinkfan $THINKFAN_ARGS $DAEMON_ARGS
 PIDFile=/run/thinkfan.pid
 ExecReload=/bin/kill -HUP $MAINPID
 
