From 3777640e76b9e36cffb16800d57a4b6999c03410 Mon Sep 17 00:00:00 2001 From: Robert Harakaly Date: Fri, 3 Dec 2004 10:35:36 +0000 Subject: [PATCH] Fixes --- .../config/scripts/glite-lb-config.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 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 434d695..83af475 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -26,8 +26,10 @@ ################################################################################ import os,string -import sys, posix +import sys, posix, getopt,time +sys.path.append(".") +from gLiteInstallerLib import gLib import mysql as MySQL # Set global variables here @@ -40,7 +42,7 @@ class glite_lb: self.version = "0.1.0" self.name = "glite-lb" - self.friendly.name = "gLite Logging and Bookkeeping Server" + self.friendly_name = "gLite Logging and Bookkeeping Server" #------------------------------------------------------------------------------- # Banner @@ -49,7 +51,7 @@ class glite_lb: def banner(self): print "\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" - print "Configuring the %s" % self.friendly.name + print "Configuring the %s" % self.friendly_name print "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n" #------------------------------------------------------------------------------- @@ -150,7 +152,7 @@ def set_env(): glib.export('GLOBUS_LOCATION',params['GLOBUS_LOCATION']) # bin and lib paths - glib.addEnvPath("PATH","/usr/bin/:$s/bin:%s/externals/bin:%s/bin" % (os.environ['GLOBUS_LOCATION'],os.environ['GLITE_LOCATION'],os.environ['GLITE_LOCATION'])) + glib.addEnvPath("PATH","/usr/bin/:%s/bin:%s/externals/bin:%s/bin" % (os.environ['GLOBUS_LOCATION'],os.environ['GLITE_LOCATION'],os.environ['GLITE_LOCATION'])) glib.addEnvPath("LD_LIBRARY_PATH","/usr/lib:%s/lib:%s/externals/lib:%s/lib" % (os.environ['GLOBUS_LOCATION'], os.environ['GLITE_LOCATION'],os.environ['GLITE_LOCATION'])) # Set environment @@ -223,18 +225,18 @@ if __name__ == '__main__': glib.print_params(params) service.copyright() - service.version() + #service.version() service.banner() # Configure the service if service.configure() == 0: - print "%s configuration successfully completed\n" % service.friendly.name + print "%s configuration successfully completed\n" % service.friendly_name else: - print "An error occurred while configuring the %s" % service.friendly.name + print "An error occurred while configuring the %s" % service.friendly_name sys.exit(1) # Start the service if service.start() != 0: - print "An error occurred while strating the %s" % service.friendly.name + print "An error occurred while starting the %s" % service.friendly_name sys.exit(1) -- 1.8.2.3