[Unit] Description=to control the fan based on temperature. [Service] Type=simple ExecStart=/usr/bin/python /storage/.kodi/userdata/fan/run-fan.py Restart=always RestartSec=20 [Install] WantedBy=kodi.target