Service to monitor the reverse tunnel network connection to Beekeeper and perform network recovery mechanisms in the event that connection test fails.
The configuration of how often the network watchdog runs and recovery recipe is defined by the /etc/waggle/nw/config.ini
file.
The service also references the beekeeper
host
and port
from the main configuration file: /etc/waggle/config.ini
The specific recovery recipe to follow is defined within the /etc/waggle/nw/config.ini
file. But in general there are 3 different steps taken attempting to recovery the reverse tunnel:
- network service restarts:
systemctl
restarts of core network services - system soft reboots:
systemctl reboot
operation - system hard reboots:
systemctl poweroff
operation
Note: the hard-reboot operation relies on an automated service or hardware unit (i.e.
wagman
) to power up the host after a small delay of the power off. For Waggle this is done in collaboration with thewaggle-wagman-watchdog
service.