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:
lissav 2008-03-06 20:32:53 +00:00
parent 170edacf2a
commit df1bc2006d

View File

@ -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