Messaging plugin enabled by default (with hardcoded default broker for now).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 7 Apr 2011 12:45:43 +0000 (12:45 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 7 Apr 2011 12:45:43 +0000 (12:45 +0000)
org.glite.lb.logger-msg/config/msg.conf.example
org.glite.lb.yaim/config/defaults/glite-lb.pre
org.glite.lb.yaim/config/functions/config_glite_lb.in

index 19f2221..ca51a50 100644 (file)
@@ -7,3 +7,5 @@ plugin = activemq_cpp_plugin.so
 
 [msg]
 broker = tcp://dev.msg.cern.ch:6166
+#broker = tcp://egi-1.msg.cern.ch:6166
+#broker = tcp://egi-2.msg.cern.ch:6166
index 6c8e2cd..0141a88 100644 (file)
@@ -41,7 +41,7 @@ GLITE_LB_RTM_ENABLED='false'
 # Real Time Monitoring identities (separated by comma)
 GLITE_LB_RTM_DN='/C=UK/O=eScience/OU=Imperial/L=Physics/CN=heppc24.hep.ph.ic.ac.uk/Email=janusz.martyniak@imperial.ac.uk'
 # MSG publish
-#GLITE_LB_MSG_BROKER=dev.msg.cern.ch:6166
+GLITE_LB_MSG_BROKER='tcp://egi-1.msg.cern.ch:6166'
 
 #
 # additional options
index df4c36b..7fd8472 100644 (file)
@@ -365,14 +365,16 @@ $logfile {
 EOF
 
   # MSG publish
-  if [ ! -z "$GLITE_LB_MSG_BROKER" ]; then
+  if [ "$GLITE_LB_MSG_BROKER" = 'false' ]; then
+    rm -f "$GLITE_LB_LOCATION_ETC/glite-lb/msg.conf"
+  else
     cat > "$GLITE_LB_LOCATION_ETC/glite-lb/msg.conf" <<EOF
 # automatically generated by yaim
 [interlogd]
 plugin = activemq_cpp_plugin.so
 
 [msg]
-broker = tcp://$GLITE_LB_MSG_BROKER
+broker = $GLITE_LB_MSG_BROKER
 EOF
   fi