add service and script, update readme

This commit is contained in:
Shoaib Khan
2023-08-14 23:56:07 -04:00
parent a08f282fe2
commit 4f02974dc4
3 changed files with 129 additions and 0 deletions

20
fancontrol.service Normal file
View File

@@ -0,0 +1,20 @@
[Unit]
Description=Fan Control script
StartLimitIntervalSec=14400
StartLimitBurst=10
[Service]
Restart=on-abnormal
User=root
Group=root
ExecStart=/usr/local/sbin/fan_control_dyn.sh
ProtectSystem=full
TimeoutStopSec=5s
[Install]
WantedBy=multi-user.target