move everything to local folder

This commit is contained in:
2024-08-26 17:34:54 +02:00
parent f92678d3f5
commit cac9c91222
21 changed files with 1 additions and 1 deletions

1
local/bin/epilog Symbolic link
View File

@@ -0,0 +1 @@
pro-epilog_wrapper.sh

1
local/bin/pe_epilog Symbolic link
View File

@@ -0,0 +1 @@
pro-epilog_wrapper.sh

1
local/bin/pe_prolog Symbolic link
View File

@@ -0,0 +1 @@
pro-epilog_wrapper.sh

20
local/bin/pro-epilog_wrapper.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
FILES=""
SCRIPTNAME=$(basename $0)
DIRS="/opt/SGE/local/${SCRIPTNAME}.d /usr/local/etc/gridengine/${SCRIPTNAME}.d"
for DIR in ${DIRS} ; do
if [ -d ${DIR} ] ; then
if [ ! -z "$(ls ${DIR}/[0-9][0-9]*)" ] ; then
FILES="${FILES} $(ls ${DIR}/[0-9][0-9]*)"
fi
fi
done
FILESSORTED="$(echo ${FILES} | sort)"
for FILE in ${FILESSORTED} ; do
${FILE} $@ || exit $?
done
exit 0

1
local/bin/prolog Symbolic link
View File

@@ -0,0 +1 @@
pro-epilog_wrapper.sh

5
local/bin/qlogin_wrapper Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
# $Id: qlogin_wrapper 175 2010-09-15 15:34:28Z kasper $
HOST=$1
PORT=$2
/usr/bin/ssh -XAq -p $PORT $USER@$HOST

25
local/bin/suspend.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/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
if [ -z "$3" ]
then
echo "Usage: $0 \$job_pid \$job_id \$job_owner"
exit 1
fi
stat=`pgrep -g $1`
if [ ! -z "$stat" ]
then
#echo "Sending $sig to $1" >> ~$3/qdel_log.log
/usr/bin/pkill --signal SIGTSTP -g $1
else
echo "Process $1 not found for job $2" >> ~$3/qdel_log.log
echo "Unable to suspend." >> ~$3/qdel_log.log
exit 1
fi
#uncomment the following for debugging
#echo "Suspending Job $2 " >> ~$3/qdel_log.log

30
local/bin/term.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/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
if [ -z "$4" ]
then
echo "Usage: $0 \$job_pid \$job_id \$job_owner interval"
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
for sig in 2 15 9
do
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
sleep $4
else
break
fi
done
#uncomment the following for debugging
#echo "Job $2 killed." >> ~$3/qdel_log.log