Skip to content

Commit 64da863

Browse files
authored
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
1 parent 19e8fd0 commit 64da863

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

on-boot-script/dpkg-build-files/udm-boot.service

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
Description=Run On Startup UDM
33
Wants=network-online.target
44
After=network-online.target
5+
StartLimitIntervalSec=500
6+
StartLimitBurst=5
57

68
[Service]
7-
Type=oneshot
9+
Restart=on-failure
10+
RestartSec=5s
811
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'\'
912
RemainAfterExit=true
1013

0 commit comments

Comments
 (0)