Added gLite service to the list of functions.
authornvazdasi <>
Mon, 18 Jun 2007 12:36:27 +0000 (12:36 +0000)
committernvazdasi <>
Mon, 18 Jun 2007 12:36:27 +0000 (12:36 +0000)
org.glite.yaim.lb/config/functions/config_glite_lb
org.glite.yaim.lb/config/node-info.d/glite-lb

index b530c71..914df01 100644 (file)
@@ -17,13 +17,10 @@ function config_glite_lb_setenv(){
 
 function config_glite_lb() {
 
-  #return 0
-  #echo "I am not here"
   #############################################
   #   Logging and Bookkeeping configuration   #
   #############################################
        
-  INSTALL_ROOT=${INSTALL_ROOT:-/opt}
   HOSTNAME=`hostname -f`
 
   # add option  --max_allowed_packet=17M
@@ -68,15 +65,6 @@ function config_glite_lb() {
 
   # do we need bkindex?
 
-  GLITE_USER=${GLITE_USER:-glite}
-  GLITE_USER_HOME=${GLITE_USER_HOME:-/home/glite}
-
-  if ( ! id $GLITE_USER > /dev/null 2>&1 ); then
-    useradd -p "*NP*"  -r -c "gLite User" -m $GLITE_USER
-    chown $GLITE_USER:$GLITE_USER $GLITE_USER_HOME
-  fi
-
-  GLITE_LOCATION_VAR=${GLITE_LOCATION_VAR:-/var/glite}
   chown $GLITE_USER:$GLITE_USER $GLITE_LOCATION_VAR
   chmod 0755 $GLITE_LOCATION_VAR
 
@@ -103,14 +91,9 @@ function config_glite_lb() {
     echo "${GLITE_LOCATION}/etc/init.d/glite-lb-bkserverd" >> ${GLITE_LOCATION}/etc/gLiteservices
   fi
 
-  echo ". /opt/glite/yaim/etc/grid-env-funcs.sh" > /etc/profile.d/aaa.sh # I hate this
-  . /opt/glite/yaim/etc/grid-env-funcs.sh
-
   . /opt/glite/etc/profile.d/grid-env.sh
   ${GLITE_LOCATION}/etc/init.d/glite-lb-bkserverd restart
 
-  rm -f /etc/profile.d/aaa.sh
-
   return 0
 
 }
index 87bdc32..23cbe23 100644 (file)
@@ -1,4 +1,5 @@
 LB_FUNCTIONS="
+config_add_pool_env
 config_crl
 config_host_certs
 config_edgusers
@@ -11,4 +12,4 @@ config_gip_service
 config_globus
 config_glite_lb
 config_glite_locallogger
-config_add_pool_env"
+config_glite_initd"