From 9d9dac0a784d9c58930e03c69b86ed1812093468 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20=C5=A0kr=C3=A1bal?= Date: Fri, 5 Aug 2005 14:36:48 +0000 Subject: [PATCH] - correct "done.sh" like shell scripts generator to work propperly with LB Proxy --- org.glite.lb.client/examples/gen_begin | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 } -- 1.8.2.3