Hi,
Since I started running a container on my torizoncore I can notice that when I run “sudo reboot now” from the linux terminal, it takes a few (~10 seconds) longer for it to start the reboot process. My container is running a python socket server that pretty much runs forever and I guess linux has to await to stop this container.
So this made me think: is there some flag that I can look for inside my container that tells me that linux is about to restart, so I can safely stop the server? I am very new to containers so any good practices around this topic are welcome!
Thanks