From 7752f57bc69948b3bf94c5a4e8b9406fcd967e7b Mon Sep 17 00:00:00 2001 From: David Collados Date: Fri, 15 Oct 2004 16:10:18 +0000 Subject: [PATCH] glite-lb-bkserverd-config is not needed anymore, as in principle it's fixed already in CVS --- .../config/scripts/glite-lb-bkserverd-config | 98 ---------------------- 1 file changed, 98 deletions(-) delete mode 100644 org.glite.deployment.lb/config/scripts/glite-lb-bkserverd-config diff --git a/org.glite.deployment.lb/config/scripts/glite-lb-bkserverd-config b/org.glite.deployment.lb/config/scripts/glite-lb-bkserverd-config deleted file mode 100644 index 782ef18..0000000 --- a/org.glite.deployment.lb/config/scripts/glite-lb-bkserverd-config +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/sh - -GLITE_LOCATION=/opt/glite -GLITE_USER=glite -GLITE_LOCATION_VAR=/opt/glite/var -GLITE_TMP=/tmp - -[ -f /etc/glite.conf ] && . /etc/glite.conf -[ -f $HOME/.glite.conf ] && . $HOME/.glite.conf - -[ -f $GLITE_LOCATION/etc/lb.conf ] && . $GLITE_LOCATION/etc/lb.conf -[ -f $GLITE_LOCATION_VAR/etc/lb.conf ] && . $GLITE_LOCATION_VAR/etc/lb.conf - -[ -n "$GLITE_LB_SERVER_PIDFILE" ] && pidfile=$GLITE_LB_SERVER_PIDFILE || - pidfile=$GLITE_LOCATION_VAR/glite-lb-bkserverd.pid - -X509_USER_PROXY=${GLITE_TMP}/hostproxy.pem - -export X509_USER_PROXY - -proxy() -{ - proxyerr=`"${GLOBUS_LOCATION}/bin/grid-proxy-init" -q \ - -cert "$GLITE_HOST_CERT" \ - -key "$GLITE_HOST_KEY" \ - -hours 24 \ - -out "${X509_USER_PROXY}.$$" 2>&1` - - [ $? -eq 0 ] || do_failure "$proxyerr" - - moveerr=`chmod 400 "${X509_USER_PROXY}.$$" && - chown "${GLITE_USER}" "${X509_USER_PROXY}.$$" && - mv "${X509_USER_PROXY}.$$" "${X509_USER_PROXY}" 2>&1` - [ $? -eq 0 ] || do_failure "$moveerr" -} - - -start() -{ - proxy - - [ -n "$GLITE_HOST_CERT" -a -n "$GLITE_HOST_KEY" ] && - creds="-c $GLITE_HOST_CERT -k $GLITE_HOST_KEY" - - [ -z "$creds" ] && echo $0: WARNING: No credentials specified. Using default lookup which is dangerous. >&2 - - [ -n "$GLITE_LB_SERVER_PORT" ] && port="-p $GLITE_LB_SERVER_PORT" - - echo -n Starting glite_lb_bkserver ... - su $GLITE_USER -c "$GLITE_LOCATION/bin/glite-lb-bkserverd \ - $creds -C $X509_CERT_DIR -i $pidfile &" && echo " done" -} - -stop() -{ - if [ -f $pidfile ]; then - pid=`cat $pidfile` - kill $pid - echo -n Stopping glite-lb-bkserverd \($pid\) ... - try=0 - while ps p $pid >/dev/null 2>&1; do - sleep 1; - try=`expr $try + 1` - if [ $try = 20 ]; then - echo " giving up after $try retries" - return 1 - fi - done - echo " done" - rm -f $pidfile - else - echo $pidfile does not exist - glite-lb-bkserverd not running? >&2 - return 1 - fi -} - -status() -{ - if [ -f $pidfile ]; then - pid=`cat $pidfile` - if ps p $pid >/dev/null 2>&1; then - echo glite-lb-bkserverd running as $pid - return 0 - fi - fi - - echo glite-lb-bkserverd not running - return 1 -} - -case x$1 in - xstart) start;; - xstop) stop;; - xrestart) stop; start;; - xstatus) status;; - x*) echo usage: $0 start,stop,restart,status >&2 - exit 1;; -esac -- 1.8.2.3