Check for mysql.sock added to the start method. Fix of bug#6416
authorRobert Harakaly <robert.harakaly@cern.ch>
Wed, 2 Feb 2005 08:53:41 +0000 (08:53 +0000)
committerRobert Harakaly <robert.harakaly@cern.ch>
Wed, 2 Feb 2005 08:53:41 +0000 (08:53 +0000)
org.glite.deployment.lb/config/scripts/glite-lb-config.py

index 48b567f..05dee0d 100644 (file)
@@ -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