5cfcbc6
diff -rupN --no-dereference thinkfan-1.0.2/CMakeLists.txt thinkfan-1.0.2-new/CMakeLists.txt
5cfcbc6
--- thinkfan-1.0.2/CMakeLists.txt	2019-02-27 12:07:02.000000000 +0100
132a9d6
+++ thinkfan-1.0.2-new/CMakeLists.txt	2019-11-27 15:37:21.042169917 +0100
5cfcbc6
@@ -121,17 +121,7 @@ if(SYSTEMD_FOUND)
d84fb9a
     install(FILES
d84fb9a
 	rcscripts/systemd/thinkfan-wakeup.service
d84fb9a
 	"${CMAKE_BINARY_DIR}/rcscripts/systemd/thinkfan.service"
d84fb9a
-	DESTINATION "${CMAKE_INSTALL_LIBDIR}/systemd/system")
5cfcbc6
-    if(NOT EXISTS "/etc/systemd/system/thinkfan.service.d/override.conf")
5cfcbc6
-	install(FILES
5cfcbc6
-	    rcscripts/systemd/override.conf
5cfcbc6
-	    DESTINATION "/etc/systemd/system/thinkfan.service.d")
5cfcbc6
-    else()
5cfcbc6
-	install(FILES
5cfcbc6
-	    rcscripts/systemd/override.conf
5cfcbc6
-	    DESTINATION "/etc/systemd/system/thinkfan.service.d"
5cfcbc6
-	    RENAME "default.conf")
5cfcbc6
-    endif()
d84fb9a
+	DESTINATION "lib/systemd/system")
5cfcbc6
 endif(SYSTEMD_FOUND)
5cfcbc6
 
5cfcbc6
 if(OPENRC_FOUND)
5cfcbc6
diff -rupN --no-dereference thinkfan-1.0.2/rcscripts/systemd/thinkfan.service thinkfan-1.0.2-new/rcscripts/systemd/thinkfan.service
5cfcbc6
--- thinkfan-1.0.2/rcscripts/systemd/thinkfan.service	2019-02-27 12:07:02.000000000 +0100
132a9d6
+++ thinkfan-1.0.2-new/rcscripts/systemd/thinkfan.service	2019-11-27 15:37:21.042169917 +0100
5cfcbc6
@@ -2,8 +2,8 @@
5cfcbc6
 Description=Thinkfan, the minimalist fan control program
5cfcbc6
 
5cfcbc6
 [Service]
5cfcbc6
-Type=forking
5cfcbc6
-ExecStart=/usr/local/sbin/thinkfan $THINKFAN_ARGS
5cfcbc6
+EnvironmentFile=-/etc/sysconfig/thinkfan
5cfcbc6
+ExecStart=/usr/local/sbin/thinkfan -n $OPTIONS
5cfcbc6
 PIDFile=/run/thinkfan.pid
5cfcbc6
 ExecReload=/bin/kill -HUP $MAINPID
5cfcbc6
 
132a9d6
diff -rupN --no-dereference thinkfan-1.0.2/rcscripts/systemd/thinkfan.service.cmake thinkfan-1.0.2-new/rcscripts/systemd/thinkfan.service.cmake
132a9d6
--- thinkfan-1.0.2/rcscripts/systemd/thinkfan.service.cmake	2019-02-27 12:07:02.000000000 +0100
132a9d6
+++ thinkfan-1.0.2-new/rcscripts/systemd/thinkfan.service.cmake	2019-11-27 15:37:21.042169917 +0100
132a9d6
@@ -2,8 +2,8 @@
132a9d6
 Description=Thinkfan, the minimalist fan control program
132a9d6
 
132a9d6
 [Service]
132a9d6
-Type=forking
132a9d6
-ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/thinkfan $THINKFAN_ARGS
132a9d6
+EnvironmentFile=-/etc/sysconfig/thinkfan
132a9d6
+ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/thinkfan -n $OPTIONS
132a9d6
 PIDFile=/run/thinkfan.pid
132a9d6
 ExecReload=/bin/kill -HUP $MAINPID
132a9d6