[Unit] Description=Radiator fans follow CPU and GPU temps After=network-online.target Wants=network-online.target [Service] ExecStartPre=/usr/sbin/modprobe nct6775 ExecStart=/usr/bin/python3 /usr/local/bin/lovey-fans.py # Belt and braces: hand fans back to the BIOS even if the daemon was killed hard ExecStopPost=/bin/sh -c 'for p in /sys/class/hwmon/hwmon*/pwm[2-5]_enable; do grep -q nct6798 "$(dirname $p)/name" && echo 5 > "$p"; done' Restart=always RestartSec=5 [Install] WantedBy=multi-user.target