2023-02-19 03:31:32 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Run On Startup UDM 2.x
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
StartLimitIntervalSec=500
|
|
|
|
StartLimitBurst=5
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5s
|
2023-02-22 05:13:46 +00:00
|
|
|
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'\'
|
2023-02-19 03:31:32 +00:00
|
|
|
RemainAfterExit=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|