momma Posted October 5 Share Posted October 5 My Home Assistant VM crashed nearly daily. Search for the logfile error or supervisor repair could not change anything so far. Here is a Script for the "User Scripts" Plugin, to restart crashed VM: #!/bin/bash if netcat -z Home.Assistant.IP.Nr 8123 >/dev/null; then # if curl --url http://Home.Assistant.IP.Nr:21080 >/dev/null; then echo "HAonline" else echo "HAoffline reboot" virsh destroy 'Home Assistant' virsh start 'Home Assistant' fi Costum Schedule 0,6,12,18,24,30,36,42,48,54 * * * * (every 6 min) not the most elegant solution, but it works Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.