fix incorrect change for starting mysql using startservice, sles/rh different

This commit is contained in:
lissav 2014-07-11 08:52:48 -04:00
parent 4de9ae70fa
commit 0fba751c63

View File

@ -888,15 +888,14 @@ sub mysqlstart
} else { # it is mysql
#if ($::linuxos =~ /rh.*/)
#{
# $cmd = "service mysqld start";
#}
#else
#{ # sles
# $cmd = "service mysql start";
#}
$ret=xCAT::Utils->startservice("mysql");
if ($::linuxos =~ /rh.*/)
{
$ret=xCAT::Utils->startservice("mysqld");
}
else
{ # sles
$ret=xCAT::Utils->startservice("mysql");
}
}
}
if ($ret != 0)