If option "conserverondemand" in site table is set to yes then start all consoles on demand.
This helps eliminate many ssh connections to blade AMM which seems to kill AMMs occasionally. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
571c1bae2d
commit
36121ff298
@ -187,6 +187,17 @@ sub docfheaders {
|
||||
push @$content," timestamp 1hab;\n";
|
||||
push @$content," include full;\n";
|
||||
push @$content," master localhost;\n";
|
||||
|
||||
#-- if option "conserverondemand" in site table is set to yes
|
||||
#-- then start all consoles on demand
|
||||
#-- this helps eliminate many ssh connections to blade AMM
|
||||
#-- which seems to kill AMMs occasionally
|
||||
my $sitetab = xCAT::Table->new('site');
|
||||
my $vcon = $sitetab->getAttribs({key => "consoleondemand"}, 'value');
|
||||
if ($vcon and $vcon->{"value"} and $vcon->{"value"} eq "yes" ) {
|
||||
push @$content," options ondemand;\n";
|
||||
}
|
||||
|
||||
push @$content,"}\n";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user