[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
|
sleep 1h
|
||||||
|
|
||||||
# Main loop ################################################################
|
# Main loop ################################################################
|
||||||
for i in 1 2 3 4
|
for i in 1 2
|
||||||
do
|
do
|
||||||
if [ `ps -ef | grep vzdump | wc -l` -eq 1 ]; then
|
if [ `ps -ef | grep vzdump | wc -l` -eq 1 ]; then
|
||||||
log "Triggering scheduled post-backup shutdown"
|
log "Triggering scheduled post-backup shutdown"
|
||||||
@@ -27,7 +27,7 @@ do
|
|||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
log "Automatic shutdown delayed due to concurrent backup task"
|
log "Automatic shutdown delayed due to concurrent backup task"
|
||||||
sleep 15m
|
sleep 30m
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user