2020-09-08 09:54:51 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Run On Startup UDM
|
2021-05-25 18:25:55 +00:00
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
2023-01-24 23:34:18 +00:00
|
|
|
StartLimitIntervalSec=500
|
|
|
|
StartLimitBurst=5
|
2020-09-08 09:54:51 +00:00
|
|
|
|
|
|
|
[Service]
|
2023-01-24 23:34:18 +00:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5s
|
2021-06-10 05:14:15 +00:00
|
|
|
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'\'
|
2020-09-08 09:54:51 +00:00
|
|
|
RemainAfterExit=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|