2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-30 00:01:56 +00:00

Do not restart conserver if goconserver was started

If goconserver was enabled, do not start conserver when restart
xcatd on service node.
This commit is contained in:
chenglch
2017-12-13 15:35:52 +08:00
parent 8caf4d6c96
commit 1e92257e0a

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";