Start service after all http handling services have started
Write a function that blocks until network is up, makes other tests (is there a default
route (man ip ip-route
), can you host google.com
(man host
), etc., then starts your services. I've written a bash script to help with this: https://github.com/waltinator/net-o-matic
It watches the connection, and when the connection drops, does a user-specified thing to try to reconnect. A little bash
knowledge will let you modify this. Read man bash
.