Skip to content
Snippets Groups Projects
Commit c2a011c9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Print job number when holding or stopping.

* backup-all: Print job number and total number of jobs when stopping
  or holding.
parent 6c719c08
Branches
Tags
No related merge requests found
2006-12-19 Per Cederqvist <ceder@sedesopim.lysator.liu.se> 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 Run distribute-tasks interactively and have the operator confirm
any changes. Better handling of changed origins. any changes. Better handling of changed origins.
* distribute-tasks (JobInfo.__init__): Initialize __active. * distribute-tasks (JobInfo.__init__): Initialize __active.
......
...@@ -73,13 +73,13 @@ do ...@@ -73,13 +73,13 @@ do
if [ -f /nobackup/backup.lysator/etc/stop ] if [ -f /nobackup/backup.lysator/etc/stop ]
then then
echo Stop file found. Exiting. >&2 echo Stop file found. Exiting at $ctr/$total. >&2
exit 1 exit 1
fi fi
if [ -f /nobackup/backup.lysator/etc/hold ] if [ -f /nobackup/backup.lysator/etc/hold ]
then then
echo Hold file found. Holding... >&2 echo Hold file found. Holding at $ctr/$total... >&2
while [ -f /nobackup/backup.lysator/etc/hold ] while [ -f /nobackup/backup.lysator/etc/hold ]
do do
sleep 1 sleep 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment