Blob Blame History Raw
diff -rupN --no-dereference thinkfan-1.0.2/CMakeLists.txt thinkfan-1.0.2-new/CMakeLists.txt
--- thinkfan-1.0.2/CMakeLists.txt	2019-02-27 12:07:02.000000000 +0100
+++ thinkfan-1.0.2-new/CMakeLists.txt	2019-11-27 15:37:21.042169917 +0100
@@ -121,17 +121,7 @@ if(SYSTEMD_FOUND)
     install(FILES
 	rcscripts/systemd/thinkfan-wakeup.service
 	"${CMAKE_BINARY_DIR}/rcscripts/systemd/thinkfan.service"
-	DESTINATION "${CMAKE_INSTALL_LIBDIR}/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.0.2/rcscripts/systemd/thinkfan.service thinkfan-1.0.2-new/rcscripts/systemd/thinkfan.service
--- thinkfan-1.0.2/rcscripts/systemd/thinkfan.service	2019-02-27 12:07:02.000000000 +0100
+++ thinkfan-1.0.2-new/rcscripts/systemd/thinkfan.service	2019-11-27 15:37:21.042169917 +0100
@@ -2,8 +2,8 @@
 Description=Thinkfan, the minimalist fan control program
 
 [Service]
-Type=forking
-ExecStart=/usr/local/sbin/thinkfan $THINKFAN_ARGS
+EnvironmentFile=-/etc/sysconfig/thinkfan
+ExecStart=/usr/local/sbin/thinkfan -n $OPTIONS
 PIDFile=/run/thinkfan.pid
 ExecReload=/bin/kill -HUP $MAINPID
 
diff -rupN --no-dereference thinkfan-1.0.2/rcscripts/systemd/thinkfan.service.cmake thinkfan-1.0.2-new/rcscripts/systemd/thinkfan.service.cmake
--- thinkfan-1.0.2/rcscripts/systemd/thinkfan.service.cmake	2019-02-27 12:07:02.000000000 +0100
+++ thinkfan-1.0.2-new/rcscripts/systemd/thinkfan.service.cmake	2019-11-27 15:37:21.042169917 +0100
@@ -2,8 +2,8 @@
 Description=Thinkfan, the minimalist fan control program
 
 [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