[Proxmox Timed Shutdown]

- Changed main loop to only retry twice after a 30 min interval.
This commit is contained in:
2023-02-26 14:54:01 +00:00
parent 04db5027c1
commit f31df4f2ca
+2 -2
View File
@@ -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