diff --git a/download_and_execute.service b/download_and_execute.service new file mode 100644 index 0000000..01b1e99 --- /dev/null +++ b/download_and_execute.service @@ -0,0 +1,13 @@ +[Unit] +Description=Run download_and_execute script at startup +After=network.target + +[Service] +ExecStart=/home/pi/download_and_execute.sh +Type=oneshot +Restart=on-failure +RestartSec=10s +RemainAfterExit=true + +[Install] +WantedBy=multi-user.target