Add some retries at boot for times when udm-boot kicks in when network is not yet up. (#468)

* After restart on failure if some services are not yet available at boot

* Some more tunables tested on UDM-Pro
This commit is contained in:
Vincent S. Cojot 2023-01-24 18:34:18 -05:00 committed by GitHub
parent 19e8fd0f5c
commit 64da86312e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,12 @@
Description=Run On Startup UDM Description=Run On Startup UDM
Wants=network-online.target Wants=network-online.target
After=network-online.target After=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5
[Service] [Service]
Type=oneshot Restart=on-failure
RestartSec=5s
ExecStart=/sbin/ssh-proxy 'mkdir -p /mnt/data/on_boot.d && find -L /mnt/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'\' ExecStart=/sbin/ssh-proxy 'mkdir -p /mnt/data/on_boot.d && find -L /mnt/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 RemainAfterExit=true