From 8aea924c3fc1a978b35694310eca9f8148d694be Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 12 Apr 2010 12:37:16 +0000 Subject: [PATCH] fix for 2976436, think there will always be the socket param to check that mysql is running git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5741 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/mysqlsetup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/sbin/mysqlsetup b/xCAT-server/sbin/mysqlsetup index 8a7c3cf1c..47cadc930 100755 --- a/xCAT-server/sbin/mysqlsetup +++ b/xCAT-server/sbin/mysqlsetup @@ -154,7 +154,7 @@ $::mysqlrunning = 0; $::xcatrunningmysql = 0; my $cmd = "ps -ef | grep mysqld"; my @output = xCAT::Utils->runcmd($cmd, 0); -my $mysqlcheck = "--datadir"; # see if really running +my $mysqlcheck = "mysql.sock"; # see if really running if (grep(/$mysqlcheck/, @output)) {