mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 09:35:58 +02: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"
|
log_red "$(date) WARNING: Too many files in queue, pausing $srv and restarting $srv2"
|
||||||
sudo systemctl stop "$srv"
|
sudo systemctl stop "$srv"
|
||||||
sudo systemctl restart "$srv2"
|
sudo systemctl restart "$srv2"
|
||||||
|
sleep 30
|
||||||
elif ((wav_count > 30)); then
|
elif ((wav_count > 30)); then
|
||||||
log_red "$(date) WARNING: Too many files in queue, restarting $srv2"
|
log_red "$(date) WARNING: Too many files in queue, restarting $srv2"
|
||||||
sudo systemctl restart "$srv2"
|
sudo systemctl restart "$srv2"
|
||||||
|
sleep 30
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check service states
|
# Check service states
|
||||||
|
|||||||
Reference in New Issue
Block a user