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

14 lines
495 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Run On Startup UDM
2021-05-25 18:25:55 +00:00
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
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'\'
RemainAfterExit=true
[Install]
WantedBy=multi-user.target