[Unit] Description=Switch projectors on and off After=multi-user.target [Service] Type=idle User=pi ExecStart=/usr/bin/python3 /home/pi/ir-remote-timer/ir-remote-timer.py > /home/pi/ir-remote-timer.log 2>&1 Restart=always RestartSec=3 [Install] WantedBy=multi-user.target