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