mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-13 01:40:26 +00:00
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:
@ -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";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user