From: Alberto Di Meglio Date: Thu, 24 Nov 2005 22:39:23 +0000 (+0000) Subject: Improved return code for stop action X-Git-Tag: glite-deployment-lb_R_2_1_1~75 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f376d53b93e21784b088df7d33a7f00506228262;p=jra1mw.git Improved return code for stop action --- 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 650a459..3f5f4f6 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -161,6 +161,7 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ if (pid != 0): print 'Could not stop the LB Server service ', glib.printFailedMessage() + error_level = 1 else: print 'The LB Server service has been stopped ', glib.printOkMessage() @@ -178,7 +179,7 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ if rgmaServicetool.stop(): error_level = 1 - return 0 + return error_level def status(self):