I know what I am asking about is a listed anti pattern :
However, and I had the same issue before using OpenBalena, sometimes, the raspberry pi zero looses network access for no reason. I wasted too much time already trying to figure out a logical reason for this problem. The fix I implemented previously was a simple check every once in a while for network access (both DNS and my personal server), and if there is none, I just restart the device.
It’s really a simple solution that guaranties the minimum downtime.
My problem is as follow: How do I restart the device from within my Docker application ?
I cannot call
/sbin/shutdown. Why is that ? How can I request a shutdown differently ?
Thanks in advance for your help.