+DATE: 21-03-2005 17:21\r
+[dimeglio] Implemented status method\r
+\r
DATE: 21-03-2005 00:32\r
-[gdiez] Added PERL5LIB env var\r
+[dimeglio] Added PERL5LIB env var\r
\r
DATE: 17-03-2005 17:33\r
[gdiez] Stopping and starting the database before the index creation (just after the database is created and the user granted)\r
# For license conditions see the license file or http://eu-egee.org/license.html
#
################################################################################
-# glite-lb-config v. 1.2.1
+# glite-lb-config v. 1.2.2
#
# Post-installation script for configuring the gLite Logging and Bookkeping Server
# Robert Harakaly < robert.harakaly@cern.ch >
def __init__(self):
self.mysql = MySQL.Mysql()
self.verbose = 0
- self.version = "1.2.1"
+ self.version = "1.2.2"
self.name = "glite-lb"
self.friendly_name = "gLite Logging and Bookkeeping"
return 0
+ def status(self):
+
+ error_level = 0
+
+ retval = self.mysql.stop()
+ if retval != 0:
+ error_level = retval
+
+ retval = os.system('%s/etc/init.d/glite-lb-bkserverd status' % os.environ['GLITE_LOCATION'])
+ if retval != 0:
+ error_level = retval
+
+ return 0
+
def configure(self):
# Create the GLITE_USER if it doesn't exists
service.start()
sys.exit(0)
if o == "--status":
- print "Not yet implemented"
- sys.exit(1)
+ sys.exit(service.start())
+
# Check certificates
if params.has_key('glite.installer.checkcerts'):