Fix error handling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@718 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
170edacf2a
commit
df1bc2006d
@ -97,16 +97,18 @@ sub setup_CONS
|
||||
|
||||
# make the consever 8 configuration file
|
||||
$cmd = "makeconservercf";
|
||||
xCAT::Utils->runcmd($cmd, -1);
|
||||
xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{ # error
|
||||
xCAT::MsgUtils->message("S", "Error running $cmd");
|
||||
return 1;
|
||||
}
|
||||
my $cmd = "chkconfig conserver on";
|
||||
xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{ # error
|
||||
xCAT::MsgUtils->message("S", "Error chkconfig conserver on");
|
||||
return 1;
|
||||
}
|
||||
|
||||
# start conserver
|
||||
|
Loading…
Reference in New Issue
Block a user