From: Di Qing Date: Mon, 12 Nov 2007 17:19:20 +0000 (+0000) Subject: Remove local/config_glite_locallogger since it is included in core X-Git-Tag: glite-yaim-lb_R_4_0_0_5~12 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a33039d516f848f11fddb5a7cbcbe9fa99eb1b95;p=jra1mw.git Remove local/config_glite_locallogger since it is included in core --- diff --git a/org.glite.yaim.lb/config/functions/local/config_glite_locallogger b/org.glite.yaim.lb/config/functions/local/config_glite_locallogger deleted file mode 100644 index 2801006..0000000 --- a/org.glite.yaim.lb/config/functions/local/config_glite_locallogger +++ /dev/null @@ -1,60 +0,0 @@ -function config_glite_locallogger_setenv(){ - yaimgridenv_set GLITE_LOCATION ${INSTALL_ROOT:-opt}/glite - yaimgridenv_set GLITE_LOCATION_VAR /var/glite - yaimgridenv_set GLITE_USER ${GLITE_USER:-glite} - yaimgridenv_set GLITE_HOST_CERT ${GLITE_USER_HOME:-/home/glite}/.certs/hostcert.pem - yaimgridenv_set GLITE_HOST_KEY ${GLITE_USER_HOME:-/home/glite}/.certs/hostkey.pem - yaimgridenv_set X509_CERT_DIR /etc/grid-security/certificates - yaimgridpath_append LD_LIBRARY_PATH /opt/c-ares/lib -} - -function config_glite_locallogger() { - - ############################################# - # locallogger configuration # - ############################################# - - INSTALL_ROOT=${INSTALL_ROOT:-/opt} - - mkdir -p $GLITE_USER_HOME/.certs - chown $GLITE_USER:$GLITE_USER $GLITE_USER_HOME/.certs - chmod 0755 $GLITE_USER_HOME/.certs - cp -f /etc/grid-security/hostcert.pem /etc/grid-security/hostkey.pem $GLITE_USER_HOME/.certs/ - if [ ! $? = 0 ] ; then - echo "Please copy host certificate and key into /etc/grid-security and" - echo " $GLITE_USER_HOME/.certs/, change the owner of the ones in" - echo " $GLITE_USER_HOME/.certs/ to $GLITE_USER" - fi - chown $GLITE_USER:$GLITE_USER $GLITE_USER_HOME/.certs/hostcert.pem $GLITE_USER_HOME/.certs/hostkey.pem - chmod 0644 $GLITE_USER_HOME/.certs/hostcert.pem - chmod 0400 $GLITE_USER_HOME/.certs/hostkey.pem - - # The workaround for bug 22389 - if [ -f /etc/cron.d/locallogger.cron ]; then - yaimlog INFO "The workaround for bug 22389 already exists" - else - yaimlog INFO "Applying the workaround for bug 22389..." - -cat << EOF > /etc/cron.d/locallogger.cron -HOME=/ -MAILTO=$SITE_EMAIL - -0 */6 * * * root touch $GLITE_USER_HOME/.certs/hostcert.pem -EOF - - fi - - # Start services - if [ ! -f ${GLITE_LOCATION}/etc/gLiteservices ] ; then - touch ${GLITE_LOCATION}/etc/gLiteservices - fi - - grep glite-lb-locallogger ${GLITE_LOCATION}/etc/gLiteservices > /dev/null - if [ ! $? = 0 ] ; then - echo "${GLITE_LOCATION}/etc/init.d/glite-lb-locallogger" >> ${GLITE_LOCATION}/etc/gLiteservices - fi - - . /opt/glite/yaim/etc/grid-env-funcs.sh - . ${GRID_ENV_LOCATION}/grid-env.sh - ${GLITE_LOCATION}/etc/init.d/glite-lb-locallogger restart -}