fixes for defect 3176647
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8813 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
7af7f6df98
commit
78e217be96
@ -951,6 +951,17 @@ sub setupdb2env
|
||||
|
||||
sub db2start
|
||||
{
|
||||
# check to see if xcatdb instance is already running
|
||||
my $cmd = "ps -ef | grep xcatdb";
|
||||
my @output = xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC == 0) # already running
|
||||
{
|
||||
my $db2check = "db2sysc"; # see if really running
|
||||
if (grep(/$db2check/, @output))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
xCAT::MsgUtils->message("I", "Starting the DB2 Server");
|
||||
my $cmd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user