From cbb06df8ed49b1ecd999e12a49d42503f5b3a166 Mon Sep 17 00:00:00 2001 From: m4n63 <58000142+m4n63@users.noreply.github.com> Date: Wed, 15 May 2024 12:23:43 +0200 Subject: [PATCH] Update udm-boot.service amended to not restart in case one of the boot scripts fails. --- on-boot-script-2.x/dpkg-build-files/udm-boot.service | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/on-boot-script-2.x/dpkg-build-files/udm-boot.service b/on-boot-script-2.x/dpkg-build-files/udm-boot.service index 54da7e9..6f26a68 100644 --- a/on-boot-script-2.x/dpkg-build-files/udm-boot.service +++ b/on-boot-script-2.x/dpkg-build-files/udm-boot.service @@ -1,13 +1,12 @@ [Unit] -Description=Run On Startup UDM 2.x +Description=Run On Startup UDM 2.x and above Wants=network-online.target After=network-online.target StartLimitIntervalSec=500 -StartLimitBurst=5 +StartLimitBurst=1 [Service] -Restart=on-failure -RestartSec=5s +Type=oneshot ExecStart=bash -c 'mkdir -p /data/on_boot.d && find -L /data/on_boot.d -mindepth 1 -maxdepth 1 -type f -print0 | sort -z | xargs -0 -r -n 1 -- sh -c '\''if test -x "$0"; then echo "%n: running $0"; "$0"; else case "$0" in *.sh) echo "%n: sourcing $0"; . "$0";; *) echo "%n: ignoring $0";; esac; fi'\' RemainAfterExit=true