From 844835f558331e7de15102a59c791ec012cff70a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 16 Nov 2010 12:51:13 +0000 Subject: [PATCH] Resurrect glue1 (GGUS #62737). --- org.glite.lb.yaim/config/functions/config_info_service_lb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.yaim/config/functions/config_info_service_lb b/org.glite.lb.yaim/config/functions/config_info_service_lb index 3b84361..13ee52e 100644 --- a/org.glite.lb.yaim/config/functions/config_info_service_lb +++ b/org.glite.lb.yaim/config/functions/config_info_service_lb @@ -49,6 +49,10 @@ SERVICE_LC=lbserver SERVICE_HOST=`hostname -f` +if [ ! -f ${INFO_SERVICE_CONFIG}/glite-info-service-${SERVICE_LC}.conf.template ]; then + yaimlog ERROR "The template file glite-info-service-${SERVICE_LC}.conf.template was not found in ${INFO_SERVICE_CONFIG}." + exit 1 +fi if [ ! -f ${INFO_SERVICE_CONFIG}/glite-info-glue2-${SERVICE_LC}.conf.template ]; then yaimlog ERROR "The template file for glite-info-glue2-${SERVICE_LC}.conf.template was not found in ${INFO_SERVICE_CONFIG}." exit 1 @@ -58,10 +62,18 @@ if [ ! -f ${INFO_SERVICE_SCRIPT}/glite-info-service ]; then yaimlog ERROR "The script file for glite-info-service was not found in ${INFO_SERVICE_SCRIPT}." exit 1 fi +if [ ! -f ${INFO_SERVICE_SCRIPT}/glite-info-glue2-simple ]; then + yaimlog ERROR "The script file for glite-info-glue2-simple was not found in ${INFO_SERVICE_SCRIPT}." + exit 1 +fi yaimlog DEBUG "Delete a previous version of the glite-info-service-${SERVICE_LC}.conf if it exists" rm -rf ${INFO_SERVICE_CONFIG}/glite-info-glue2-${SERVICE_LC}.conf +yaimlog DEBUG "Delete a previous version of the glite-info-glue2-${SERVICE_LC}.conf if it exists" +rm -rf ${INFO_SERVICE_CONFIG}/glite-info-glue2-${SERVICE_LC}.conf +yaimlog DEBUG "Create the glite-info-service-${SERVICE_LC}.conf file out of the template file" +cp ${INFO_SERVICE_CONFIG}/glite-info-service-${SERVICE_LC}.conf.template ${INFO_SERVICE_CONFIG}/glite-info-service-${SERVICE_LC}.conf yaimlog DEBUG "Create the glite-info-glue2-${SERVICE_LC}.conf file out of the template file" cp ${INFO_SERVICE_CONFIG}/glite-info-glue2-${SERVICE_LC}.conf.template ${INFO_SERVICE_CONFIG}/glite-info-glue2-${SERVICE_LC}.conf @@ -78,7 +90,7 @@ cat << EOF > ${INFO_PROVIDER_PATH}/glite-info-provider-service-${SERVICE_LC}-wra #!/bin/sh export PATH=$PATH:${INFO_SERVICE_SCRIPT} export ${SERVICE}_HOST=${SERVICE_HOST} -${INFO_SERVICE_SCRIPT}/glite-info-service ${INFO_SERVICE_CONFIG}/glite-info-glue2-${SERVICE_LC}.conf $SITE_NAME +${INFO_SERVICE_SCRIPT}/glite-info-service ${INFO_SERVICE_CONFIG}/glite-info-service-${SERVICE_LC}.conf $SITE_NAME ${INFO_SERVICE_SCRIPT}/glite-info-glue2-simple ${INFO_SERVICE_CONFIG}/glite-info-glue2-${SERVICE_LC}.conf $SITE_NAME EOF -- 1.8.2.3