Open Firstyear opened 1 year ago
It also looks like https://github.com/unifi-utilities/unifios-utilities/tree/main the readme shows:
[on-boot-script-2.x](https://github.com/unifi-utilities/unifios-utilities/tree/main#on-boot-script-2x)
Do this first. Enables init.d style scripts to run on every boot of your UDM. Includes examples to run wpa-supplicant/eap-proxy and/or ntop-ng on startup. Follow this [readme](https://github.com/unifi-utilities/unifios-utilities/blob/main/on-boot-script/README.md).
But if you look the readme it points to is the older boot script.
Could the method by fdcastel for a UDM-PRO installation work for your UXG-PRO https://github.com/unifi-utilities/unifios-utilities/issues/523#issuecomment-1733527918
# Download package
curl -L https://github.com/unifi-utilities/unifios-utilities/raw/main/on-boot-script-2.x/packages/udm-boot-2x_1.0.1_all.deb -o /tmp/udm-boot-2x_1.0.1_all.deb
# Install it
dpkg -i /tmp/udm-boot-2x_1.0.1_all.deb
# Patches for 'udm-boot-2x_1.0.1_all.deb' package
sed -i 's/Description=Run On Startup UDM 2.x/Description=Run On Startup UDM 3.x/g' /lib/systemd/system/udm-boot.service
sed -i '/Restart=on-failure/d' /lib/systemd/system/udm-boot.service
sed -i '/RestartSec=5s/d' /lib/systemd/system/udm-boot.service
# Enable reload and start
systemctl enable udm-boot
systemctl daemon-reload
systemctl start udm-boot
Describe the bug When running systemctl start udm-boot, the service fails to start.
The error is as follows:
To Reproduce Steps to reproduce the behavior:
Expected behavior udm-boot to start.
Screenshots N/A
UDM Information
Additional context
Per internet research I removed the ' ' between execstart and the = to attempt to resolve.
It may be simpler to break out this script to a seperate .sh file and thene have ExecStart trigger it rather than relying on the shell embedding in the unit file.