I have a static ip with my primary connection, I also have a backup connection that relies on lte and it's not unlimited. So I'm trying to figure out a way to stop some dockers when the primary connection is down, I think the easiest way is to write a script that checks the ip, so when it changes from the static one it shut down some dockers and when it's back up it restart those. I don't really know how to accomplish that
I'd really appreciate any help, thanks