fix logic so only starts conserver for AIX, if the servicenode table indicate to do so
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10142 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5d8855dd67
commit
f0a853ebea
@ -107,22 +107,12 @@ sub init_plugin
|
||||
# for a list of all functions to setup for this service node
|
||||
#
|
||||
my @servicelist = xCAT::Utils->isServiceReq($nodename, \@nodeipaddr);
|
||||
my $service;
|
||||
if ($::RUNCMD_RC == 0)
|
||||
{
|
||||
if (xCAT::Utils->isLinux())
|
||||
{ #run only the following only on Linux
|
||||
|
||||
my $service = "conserver";
|
||||
if (grep(/$service/, @servicelist))
|
||||
{
|
||||
|
||||
$rc = &setup_CONS($nodename); # setup conserver
|
||||
if ($rc == 0)
|
||||
{
|
||||
xCAT::Utils->update_xCATSN($service);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$service = "ftpserver";
|
||||
if (grep(/$service/, @servicelist))
|
||||
@ -173,16 +163,26 @@ sub init_plugin
|
||||
}
|
||||
|
||||
} # end Linux only
|
||||
else
|
||||
{
|
||||
#AIX
|
||||
$rc = xCAT::Utils->setupAIXconserver();
|
||||
|
||||
}
|
||||
#
|
||||
# setup these services for AIX or Linux
|
||||
#
|
||||
my $service = "nameserver";
|
||||
$service = "conserver";
|
||||
if (grep(/$service/, @servicelist))
|
||||
{
|
||||
if (xCAT::Utils->isLinux())
|
||||
{ #run only the following only on Linux
|
||||
|
||||
$rc = &setup_CONS($nodename); # setup conserver
|
||||
if ($rc == 0)
|
||||
{
|
||||
xCAT::Utils->update_xCATSN($service);
|
||||
}
|
||||
} else { #AIX
|
||||
$rc = xCAT::Utils->setupAIXconserver();
|
||||
|
||||
}
|
||||
}
|
||||
$service = "nameserver";
|
||||
if (grep(/$service/, @servicelist))
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user