mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-01 18:35:36 +00:00
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user