From: Jiří Škrábal Date: Fri, 5 Aug 2005 14:36:48 +0000 (+0000) Subject: - correct "done.sh" like shell scripts generator to work propperly with LB Proxy X-Git-Tag: glite-lb-proxy_R_1_1_1~6 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=9d9dac0a784d9c58930e03c69b86ed1812093468;p=jra1mw.git - correct "done.sh" like shell scripts generator to work propperly with LB Proxy --- diff --git a/org.glite.lb.client/examples/gen_begin b/org.glite.lb.client/examples/gen_begin index 5205811..90f8c11 100755 --- a/org.glite.lb.client/examples/gen_begin +++ b/org.glite.lb.client/examples/gen_begin @@ -12,10 +12,11 @@ LOGEV=${LOGEV:-`dirname $0`/${PREFIX}logevent}${SUFFIX} JOB_REG=${JOB_REG:-`dirname $0`/${PREFIX}job_reg}${SUFFIX} EDG_JOBID= LBPROXY= +LBPROXY_STORE_SOCK= usage() { - echo "Usage : $0 [-x] [-m bkserver_machine_name][-j job_id]" + echo "Usage : $0 [-x | -X store_socket_path] [-m bkserver_machine_name][-j job_id]" exit 4 } @@ -24,7 +25,8 @@ while test -n "$1" do case "$1" in "-m") shift; BKSERVER_HOST="$1" ;; - "-x") shift; LBPROXY="-x" ;; + "-x") LBPROXY="-x -S $1" ;; + "-X") shift; LBPROXY="-x"; LBPROXY_STORE_SOCK="-S $1" ;; "-j") shift; EDG_JOBID="$1" ;; "*") usage ;; esac @@ -47,8 +49,8 @@ fi send_log_ev() { - echo $LOGEV $LBPROXY -j "$EDG_JOBID" -c "$EDG_WL_SEQUENCE" "$@" 1>&$LOGFD - EDG_WL_SEQUENCE=`$LOGEV $LBPROXY -j $EDG_JOBID -c $EDG_WL_SEQUENCE "$@" 2>/dev/null` + echo $LOGEV $LBPROXY $LBPROXY_STORE_SOCK -j "$EDG_JOBID" -c "$EDG_WL_SEQUENCE" "$@" 1>&$LOGFD + EDG_WL_SEQUENCE=`$LOGEV $LBPROXY $LBPROXY_STORE_SOCK -j $EDG_JOBID -c $EDG_WL_SEQUENCE "$@" 2>/dev/null` test $? -ne 0 -o -z "$EDG_WL_SEQUENCE" && exit 4 true }