From 9a030aa52b8582382a625ad59cf38e60f6acde28 Mon Sep 17 00:00:00 2001 From: Alberto Di Meglio Date: Wed, 2 Mar 2005 21:45:55 +0000 Subject: [PATCH] Improved formatting --- .../config/scripts/glite-lb-config.py | 9 +- .../config/templates/glite-lb.cfg.xml | 123 +++++++++++++-------- 2 files changed, 80 insertions(+), 52 deletions(-) diff --git a/org.glite.deployment.lb/config/scripts/glite-lb-config.py b/org.glite.deployment.lb/config/scripts/glite-lb-config.py index 08a0b48..7a19f74 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -186,9 +186,11 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ pid = glib.getPID('rgma-servicetool') if (pid != 0): - print 'Could not stop the R-GMA Servicetool service ', glib.printFailedMessage() + print 'Could not stop the R-GMA Servicetool service ', + glib.printFailedMessage() else: - print 'The R-GMA Servicetool service has been stopped ', glib.printOkMessage() + print 'The R-GMA Servicetool service has been stopped ', + glib.printOkMessage() return 0 @@ -233,7 +235,8 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ file = open('/tmp/mysql_ct', 'w') text = ['CREATE DATABASE %s;\n' % params['lb.database.name'], - 'GRANT ALL PRIVILEGES ON %s.* TO %s@localhost IDENTIFIED BY "";\n' % (params['lb.database.name'],params['lb.database.username']), + 'GRANT ALL PRIVILEGES ON %s.* TO %s@localhost IDENTIFIED BY "";\n' \ + % (params['lb.database.name'],params['lb.database.username']), 'USE %s;\n' % params['lb.database.name'], '\. %s/etc/glite-lb-dbsetup.sql\n' % os.environ['GLITE_LOCATION']] diff --git a/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml b/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml index 8577038..1576560 100644 --- a/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml +++ b/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml @@ -37,11 +37,13 @@ value="lbserver20"/> - owner - location - destination - + description="Definitions of indices on all the currently supported indexed system attributes"> + + owner + location + destination + + + + - + Example: your.host.name_lb + [Type: 'String']" + + value="changeme"/> - + This should be unique for each service. Use example and adapt host. + Example: http://your.host.name:0/LB/lbServer + [Type: 'string']" - + + + each service type. Currently two methods of type naming are recommended: + (1) The targetNamespace from the WSDL document, followed by a space and then the service name. + (2) A URL owned by the body or individual who defines the service type. + Example: Logging and Bookkeeping Server + [Type: 'string']" + + value="Logging and Bookkeeping Server"/> - + Example: 1.2.3 + [Type: 'string']" - + + + Example: 60 + [Type: 'string'] [Unit: 'seconds']" + + value="20"/> - - + description="RGMA servicetool variable: Script to run when determining the service status. + This script should return an exit code of 0 to indicate the service is OK, other values + should indicate an error. The first line of the standard output should be a brief message + describing the service status (e.g. 'Accepting connections') + Example: ${GLITE_LOCATION}/etc/init.d/glite-lb-bkserverd status + [Type: 'string']" + + value="${GLITE_LOCATION}/etc/init.d/glite-lb-bkserverd status"/> + + - - - + service has no WSDL). + Example: http://example.rl.ac.uk/service?WSDL + [Type: 'string']" + + value=""/> + + + + - - - + + + -- 1.8.2.3