From 2c2a3971c2179a675777da0876ffbf0001563cf1 Mon Sep 17 00:00:00 2001 From: Alberto Di Meglio Date: Sat, 9 Jul 2005 19:22:27 +0000 Subject: [PATCH] Updated to new servicetool conventions --- .../config/scripts/glite-lb-config.py | 4 +-- .../config/templates/glite-lb.cfg.xml | 31 +++++++++------------- 2 files changed, 15 insertions(+), 20 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 09ba25c..61f5e5c 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -420,7 +420,7 @@ if __name__ == '__main__': # Command line opts if any try: - opts, args = getopt.getopt(sys.argv[1:], 'chv', ['checkconf', 'help', 'version','stop','start','status','siteconfig=']) + opts, args = getopt.getopt(sys.argv[1:], 'chv', ['checkconf', 'help', 'version','configure','stop','start','status','siteconfig=']) except getopt.GetoptError: service.usage(msg = "Unknown options(s)") sys.exit(1) @@ -515,7 +515,7 @@ if __name__ == '__main__': if o in ("stop", "--stop"): # Stop the service if service.stop() == 0: - print "\n\nThe %s was successfully stoped " % service.friendly_name, + print "\n\nThe %s was successfully stopped " % service.friendly_name, glib.printOkMessage() sys.exit(0) else: 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 ed39d97..0eeb26d 100644 --- a/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml +++ b/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml @@ -66,28 +66,23 @@ value="true"/> + + + description="Name of the service. This should be globally unique. + [Example: 'HOSTANME_LB_LocalLogger'] [Type: 'String']" + value="${HOSTNAME}_${rgma.servicetool.service_type}"/> - - + value="not available"/> + value="30"/> + value="not available"/> + value="not available"/> -- 1.8.2.3