home-assistant-addons
home-assistant-addons copied to clipboard
Addon stops when connection/forwarding fails
We had a power outage today. This lead to a weird constellation in which the autossh-addon wasn't able to connect and stopped after the run script was finished.
I assume there are similar causes for connection issues and I would like to ensure that the addon never stops trying to reconnect.
I see three options to fix this:
- Fix my specific issue by setting the following line to "no" - not sure what that will do exactly https://github.com/ThomDietrich/home-assistant-addons/blob/01dce2b79dda9e6488c66bec46826f52f6ff3f57/autossh/run.sh#L83
- Put the autossh command into an endless loop - that would certainly help
- Make use of supervisor watchdog "will restart the addon when it fails" - I don't know how it works and what fails means. Is it a simple
exit 1
?
Option 3 is my favorite overall.
What do you think?