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:
sikorsky 2008-09-10 15:07:26 +00:00
parent 571c1bae2d
commit 36121ff298

View File

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