I've got a Ubuntu machine running a software that requires internet. However, sometimes the wifi fails (router reboot for example) and doesn't find the network again, until I manually service network-manager restart
or I switch off and on the wifi to find it.
Is there a possible way to run a cron job or a supervisord job to monitor the connectivity and if the network can't be found to restart the network-manager
service and connect to that specific SSID?