2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 03:00:26 +00:00

Merge pull request #4503 from chenglch/goconssn

Do not restart conserver if goconserver was started
This commit is contained in:
Bin Xu
2017-12-14 16:06:27 +08:00
committed by GitHub

View File

@@ -488,8 +488,14 @@ sub setup_CONS
{
my ($nodename) = @_;
my $rc = 0;
my $cmd;
if (-x "/usr/bin/goconserver") {
my $cmd = "ps axf | grep -v grep | grep \/usr\/bin\/goconserver";
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC == 0) {
xCAT::MsgUtils->message("S", "INFO: goconserver was started, do nothing for conserver.");
return 0;
}
}
my $cmdref;
$cmdref->{command}->[0] = "makeconservercf";
$cmdref->{arg}->[0] = "-l";