update local folder to match files acctually used
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/ksh
|
||||
# $Id: suspend.sh 365 2013-11-18 09:58:17Z kasper $
|
||||
|
||||
# This script should be added as the SUSPEND_METHOD in the
|
||||
# queue definition with a $job_pid, $job_id, and $job_owner arguments.
|
||||
# e.g. script.sh $job_pid $job_id $job_owner
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/ksh
|
||||
# $Id: term.sh 364 2013-11-18 09:55:05Z kasper $
|
||||
|
||||
# This script should be added as the TERMINATE_METHOD in the
|
||||
# queue definition with $job_pid, $job_id, $job_owner, and interval arguments.
|
||||
# e.g. script.sh $job_pid $job_id $job_owner 90
|
||||
@@ -10,16 +10,16 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#echo "Term script Running on: $USER $1 $2 $3 $4" >> ~$3/qdel_log.log
|
||||
#echo `pgrep -g $1` >> ~$3/qdel_log.log
|
||||
#echo "Term script Running on $(hostname): $USER $1 $2 $3 $4" >> ~$3/qdel_log.log
|
||||
#echo $(pgrep -g $1) >> ~$3/qdel_log.log
|
||||
|
||||
for sig in 2 15 9
|
||||
for sig in INT TERM KILL
|
||||
do
|
||||
stat=`pgrep -g $1 -u $3`
|
||||
if [ ! -z "$stat" ]
|
||||
stat=$(pgrep -g $1 -u $3)
|
||||
if [ ! -z "${stat}" ]
|
||||
then
|
||||
#echo "Sending $sig to $1" >> ~$3/qdel_log.log
|
||||
/usr/bin/pkill --signal $sig -g $1
|
||||
#echo "Sending SIG${sig} to $1" >> ~$3/qdel_log.log
|
||||
/usr/bin/pkill --signal ${sig} -g $1
|
||||
sleep $4
|
||||
else
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user