From: Robert Harakaly Date: Wed, 2 Feb 2005 08:53:41 +0000 (+0000) Subject: Check for mysql.sock added to the start method. Fix of bug#6416 X-Git-Tag: gridsite-core_R_1_1_5~67 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ba10f25336e40f77e7c7eaafb62475e54c1e2108;p=jra1mw.git Check for mysql.sock added to the start method. Fix of bug#6416 --- 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 48b567f..05dee0d 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -103,6 +103,8 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ def start(self): self.mysql.start() + if not os.path.exists('/tmp/mysql.sock'): + os.symlink('/var/lib/mysql/mysql.sock', '/tmp/mysql.sock') os.system('%s/etc/init.d/glite-lb-bkserverd start' % os.environ['GLITE_LOCATION']) return 0