File: 0002-rcscripts-load-defaults-for-systemd.patch

package info (click to toggle)
thinkfan 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 680 kB
  • sloc: cpp: 3,886; ansic: 492; sh: 119; xml: 23; makefile: 19
file content (18 lines) | stat: -rw-r--r-- 597 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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