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