[Unit]
Description=run fan when hot
After=meadiacenter.service

[Service]
# If User and Group are not specified, then by default systemd ExecStart runs as root
User=root
Group=root
Type=simple
ExecStart=/usr/bin/python /home/osmc/run-fan.py
# write to journal or within script to separate log file
# StandardOutput=/home/osmc/run-fan.log
# StandardError=/home/osmc/run-fan.log
Restart=Always

[Install]
WantedBy=multi-user.target