diff --git a/autofan.service b/autofan.service new file mode 100644 index 0000000..c51e25a --- /dev/null +++ b/autofan.service @@ -0,0 +1,10 @@ +[Unit] +Description=ASRock IPMI automatic fan control + +[Service] +WorkingDirectory=/root/asrock-pwm-ipmi/ +ExecStart=/root/asrock-pwm-ipmi/asrock-pwm-ipmi -a +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/pwm.py b/pwm.py index 697e3a3..1ac123e 100755 --- a/pwm.py +++ b/pwm.py @@ -58,7 +58,7 @@ while args.auto is True: speeds.append(str(i) + ":" + str(speed)) iterateFans(speeds) #print(speeds) - time.sleep(1) + #time.sleep(1) if args.info is False and args.fanplusspeed == []: print("Nothing to do! See --help for usage.")