fix incorrect change for starting mysql using startservice, sles/rh different
This commit is contained in:
parent
4de9ae70fa
commit
0fba751c63
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user