From c2a011c9e7ef30a0fe271215aa14d17047cc30c9 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Tue, 19 Dec 2006 19:38:47 +0000 Subject: [PATCH] Print job number when holding or stopping. * backup-all: Print job number and total number of jobs when stopping or holding. --- ChangeLog | 4 ++++ backup-all | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 94047d2..bf1d4da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-12-19 Per Cederqvist <ceder@sedesopim.lysator.liu.se> + Print job number when holding or stopping. + * backup-all: Print job number and total number of jobs when + stopping or holding. + Run distribute-tasks interactively and have the operator confirm any changes. Better handling of changed origins. * distribute-tasks (JobInfo.__init__): Initialize __active. diff --git a/backup-all b/backup-all index e1c6162..e817487 100755 --- a/backup-all +++ b/backup-all @@ -73,13 +73,13 @@ do if [ -f /nobackup/backup.lysator/etc/stop ] then - echo Stop file found. Exiting. >&2 + echo Stop file found. Exiting at $ctr/$total. >&2 exit 1 fi if [ -f /nobackup/backup.lysator/etc/hold ] then - echo Hold file found. Holding... >&2 + echo Hold file found. Holding at $ctr/$total... >&2 while [ -f /nobackup/backup.lysator/etc/hold ] do sleep 1 -- GitLab