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:
@@ -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";
|
||||
|
Reference in New Issue
Block a user