[Unit] Description=Run download_and_execute script at startup After=network.target [Service] ExecStart=/home/pi/smp_pc/smp_init.sh Type=oneshot Restart=on-failure RestartSec=10s RemainAfterExit=true [Install] WantedBy=multi-user.target