Renamed some vars and fixed some text. No functionality changes. Still 1.01
This commit is contained in:
parent
0724802a20
commit
e2921d772e
|
@ -45,7 +45,7 @@ RUNNING_SIGNAL="$0_is_running"
|
||||||
GLOBAL_LOCK="PPSS-$RANDOM-$RANDOM"
|
GLOBAL_LOCK="PPSS-$RANDOM-$RANDOM"
|
||||||
PAUSE_SIGNAL="pause.txt"
|
PAUSE_SIGNAL="pause.txt"
|
||||||
ARRAY_POINTER_FILE="array-pointer-$RANDOM-$RANDOM"
|
ARRAY_POINTER_FILE="array-pointer-$RANDOM-$RANDOM"
|
||||||
JOB_LOG="job_log"
|
JOB_LOG_DIR="job_log"
|
||||||
MAX_DELAY=2
|
MAX_DELAY=2
|
||||||
PERCENT="0"
|
PERCENT="0"
|
||||||
PID="$$"
|
PID="$$"
|
||||||
|
@ -182,7 +182,7 @@ function is_running {
|
||||||
if [ -e "$RUNNING_SIGNAL" ]
|
if [ -e "$RUNNING_SIGNAL" ]
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
log INFO "$0 is already running"
|
log INFO "$0 is already running (lock file exists)."
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -281,9 +281,9 @@ function init_vars {
|
||||||
MAX_NO_OF_RUNNING_JOBS=`get_no_of_cpus $HYPERTHREADING`
|
MAX_NO_OF_RUNNING_JOBS=`get_no_of_cpus $HYPERTHREADING`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e "$JOB_LOG" ]
|
if [ ! -e "$JOB_LOG_DIR" ]
|
||||||
then
|
then
|
||||||
mkdir "$JOB_LOG"
|
mkdir "$JOB_LOG_DIR"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -491,12 +491,12 @@ function commando {
|
||||||
|
|
||||||
ITEM="$1"
|
ITEM="$1"
|
||||||
|
|
||||||
if [ -e "$JOB_LOG/$ITEM" ]
|
if [ -e "$JOB_LOG_DIR/$ITEM" ]
|
||||||
then
|
then
|
||||||
log DEBUG "Skipping item $ITEM - already processed." # <-- disabled because of possible performance penalty.
|
log DEBUG "Skipping item $ITEM - already processed." # <-- disabled because of possible performance penalty.
|
||||||
else
|
else
|
||||||
#log DEBUG "Starting command on item $ITEM." # <-- disabled because of possible performance penalty.
|
#log DEBUG "Starting command on item $ITEM." # <-- disabled because of possible performance penalty.
|
||||||
EXECME='$COMMAND "$ITEM" > "$JOB_LOG/$ITEM"'
|
EXECME='$COMMAND "$ITEM" > "$JOB_LOG_DIR/$ITEM"'
|
||||||
eval "$EXECME"
|
eval "$EXECME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue