Skip to content

Commit

Permalink
Change supervisor restart service to debug reporting only
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik authored Nov 29, 2024
1 parent 9b1e552 commit 36fc679
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion userpatches/extensions/ha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function pre_customize_image__500_add_ha_to_image() {
#!/bin/bash
while true; do
if ha supervisor info 2>&1 | grep -q "healthy: false"; then
echo "Unhealthy detected, restarting" | systemd-cat -t $(basename "$0") -p emerg
echo "Unhealthy detected, restarting" | systemd-cat -t $(basename "$0") -p debug
systemctl restart hassio-supervisor.service
sleep 600
else
Expand All @@ -141,6 +141,8 @@ function pre_customize_image__500_add_ha_to_image() {
Description=Supervisor Unhealthy Fix
[Service]
StandardOutput=null
StandardError=null
ExecStart=/usr/local/bin/supervisor_fix.sh
[Install]
Expand Down

0 comments on commit 36fc679

Please sign in to comment.