Systemd Unit for fancontrol service
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
# auto mode.
|
||||
start() {
|
||||
echo "Starting Service"
|
||||
chmod 744 /proc/acpi/ibm/fan
|
||||
while :
|
||||
do
|
||||
CURRENTSPEED=`cat /proc/acpi/ibm/fan | grep level: | awk 'NF>1{print $NF}'`
|
||||
|
||||
10
fancontrol.service
Normal file
10
fancontrol.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Monitor and control fan speed
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/fancontrol start
|
||||
ExecStop=/usr/bin/fancontrol stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user