mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-24 05:26:28 +01:00
Add sleep after restart
This commit is contained in:
@@ -76,9 +76,11 @@ while true; do
|
||||
log_red "$(date) WARNING: Too many files in queue, pausing $srv and restarting $srv2"
|
||||
sudo systemctl stop "$srv"
|
||||
sudo systemctl restart "$srv2"
|
||||
sleep 30
|
||||
elif ((wav_count > 30)); then
|
||||
log_red "$(date) WARNING: Too many files in queue, restarting $srv2"
|
||||
sudo systemctl restart "$srv2"
|
||||
sleep 30
|
||||
fi
|
||||
|
||||
# Check service states
|
||||
|
||||
Reference in New Issue
Block a user