mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-15 03:49:20 +02:00
Fix restarts
This commit is contained in:
@@ -90,8 +90,8 @@ while true; do
|
||||
|
||||
# Check service states
|
||||
for service in "$srv" "$srv2"; do
|
||||
state_var="${service}_state"
|
||||
if [[ "${state_var:-}" != "active" ]]; then
|
||||
state="$(systemctl is-active "$service")"
|
||||
if [[ "$state" != "active" ]]; then
|
||||
log_yellow "$(date) INFO: Restarting $service service"
|
||||
sudo systemctl restart "$service"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user