X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC;fp=bin%2FBackupPC;h=2edf36dec9de4c72a9d785e5f164ebb36775ad68;hp=f3df54a00c99cb471aa7132ad880537641765c4a;hb=3d15da9b2c6de8018c02677549678d6d769234b5;hpb=f076585d3ff9dfe6de32292b897e293008efe74e diff --git a/bin/BackupPC b/bin/BackupPC index f3df54a..2edf36d 100755 --- a/bin/BackupPC +++ b/bin/BackupPC @@ -409,7 +409,6 @@ sub Main_TryToRun_nightly $CmdQueueOn{$bpc->trashJob} = 1; } if ( $RunNightlyWhenIdle == 1 ) { - # # Queue multiple nightly jobs based on the configuration # @@ -477,7 +476,6 @@ sub Main_TryToRun_nightly $start = $start0 + int(($end - $start0) * ($i + 1) / $Conf{MaxBackupPCNightlyJobs}); push(@$cmd, $start - 1); - my $job = $bpc->adminJob($i); unshift(@CmdQueue, { host => $job, @@ -868,7 +866,12 @@ sub Main_Check_Timeout # Remember to run the nightly script when the next CmdQueue # job is done. # - $RunNightlyWhenIdle = 1; + if ( $RunNightlyWhenIdle == 2 ) { + print(LOG $bpc->timeStamp, "BackupPC_nightly is still running after 24 hours!!" + . " You should adjust the config settings; Skipping this run\n"); + } else { + $RunNightlyWhenIdle = 1; + } } # # Write out the current status and then queue all the PCs