[Proxmox Timed Shutdown]
- Changed main loop to only retry twice after a 30 min interval.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user