diff -rupN --no-dereference thinkfan-1.3.1/CMakeLists.txt thinkfan-1.3.1-new/CMakeLists.txt
--- thinkfan-1.3.1/CMakeLists.txt 2022-02-05 16:12:20.000000000 +0100
+++ thinkfan-1.3.1-new/CMakeLists.txt 2022-02-07 10:08:13.703113795 +0100
@@ -139,17 +139,7 @@ if(SYSTEMD_FOUND)
rcscripts/systemd/thinkfan-sleep.service
rcscripts/systemd/thinkfan-wakeup.service
"${CMAKE_BINARY_DIR}/rcscripts/systemd/thinkfan.service"
- DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/systemd/system")
- if(NOT EXISTS "/etc/systemd/system/thinkfan.service.d/override.conf")
- install(FILES
- rcscripts/systemd/override.conf
- DESTINATION "/etc/systemd/system/thinkfan.service.d")
- else()
- install(FILES
- rcscripts/systemd/override.conf
- DESTINATION "/etc/systemd/system/thinkfan.service.d"
- RENAME "default.conf")
- endif()
+ DESTINATION "lib/systemd/system")
endif(SYSTEMD_FOUND)
if(OPENRC_FOUND)
diff -rupN --no-dereference thinkfan-1.3.1/rcscripts/systemd/thinkfan.service.cmake thinkfan-1.3.1-new/rcscripts/systemd/thinkfan.service.cmake
--- thinkfan-1.3.1/rcscripts/systemd/thinkfan.service.cmake 2022-02-05 16:12:20.000000000 +0100
+++ thinkfan-1.3.1-new/rcscripts/systemd/thinkfan.service.cmake 2022-02-07 10:08:13.703113795 +0100
@@ -4,8 +4,8 @@ After=sysinit.target
After=systemd-modules-load.service
[Service]
-Type=forking
-ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/thinkfan $THINKFAN_ARGS
+EnvironmentFile=-/etc/sysconfig/thinkfan
+ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/thinkfan -n $OPTIONS
PIDFile=/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID