udm-le: unifi-os doesn't restart
Expected With the on-boot script, udm-le waits 5 minutes then installs certs and restarts unifi-os
Actual
The unifi-os restart command that the script runs doesn’t work. Unifi-os is stopped but doesn’t restart, everything is back to normal only after manually executing unifi-os restart.
UDM-PRO firmware 1.8.6 on-boot-script 1.0.4 udm-le 1.0.7
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 36 (16 by maintainers)
Not really, I was wrong there. The
-xswitch does work but the output is written to syslog at /var/log/messages and not to the file we specified, the file remains empty.I did some further testing. I created an on boot script that contained only
It failed the same way udm-le fails. So it’s clearly something with on boot scripts execution on my udm-pro.
I narrowed down the problem further by modifying my script to
sh -x /usr/sbin/unifi-os restartand inspecting /var/log/messages.unifi-os restartcalls thestopfunction first which is as follows:According to the logs I saw,
podman stopis the last command that executes,stop_dropbear_deamonor therestartfunction that should be called later are never executed. This is because the script receives a SIGTERM.You can see that just after
podman stop unifi-osthe script receives a SIGTERM, it then finishes shutting down unifi-os and exits. This never happens whenunifi-os restartis run from command line. I have absolutely no idea where this is comming from, I think I’m going to ask on udm-utilities issues.