From 36121ff29801926dfe98ae1ee06f1767a1cac340 Mon Sep 17 00:00:00 2001 From: sikorsky Date: Wed, 10 Sep 2008 15:07:26 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/conserver.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/conserver.pm b/xCAT-server/lib/xcat/plugins/conserver.pm index 8329f9b0c..c0c91e271 100644 --- a/xCAT-server/lib/xcat/plugins/conserver.pm +++ b/xCAT-server/lib/xcat/plugins/conserver.pm @@ -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"; }