From f31df4f2ca61a666075b36028b24cf581b327ee0 Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Sun, 26 Feb 2023 14:54:01 +0000 Subject: [PATCH] [Proxmox Timed Shutdown] - Changed main loop to only retry twice after a 30 min interval. --- ProxmoxTimedShutdown.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProxmoxTimedShutdown.sh b/ProxmoxTimedShutdown.sh index a3bc431..23cb867 100644 --- a/ProxmoxTimedShutdown.sh +++ b/ProxmoxTimedShutdown.sh @@ -19,7 +19,7 @@ log "Waiting 1hr to allow user to cancel shutdown" sleep 1h # Main loop ################################################################ -for i in 1 2 3 4 +for i in 1 2 do if [ `ps -ef | grep vzdump | wc -l` -eq 1 ]; then log "Triggering scheduled post-backup shutdown" @@ -27,7 +27,7 @@ do exit 1 else log "Automatic shutdown delayed due to concurrent backup task" - sleep 15m + sleep 30m fi done