From 88a175c7be5e014c24a7848e359f3fb9d54052ce Mon Sep 17 00:00:00 2001 From: zart Date: Tue, 12 Nov 2024 15:45:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E9=87=8D=E5=90=AF=20?= =?UTF-8?q?=E9=87=8D=E8=BD=BD=20=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- download_and_execute.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 download_and_execute.service 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