Commit ecde1845 authored by Leigh Stoller's avatar Leigh Stoller

Add Site variables for controlling idle checks from the PG expire

daemon.
parent 7bafb250
......@@ -116,7 +116,8 @@ INSERT INTO sitevariables VALUES ('general/autoswap_max',NULL,'120','Maximum num
INSERT INTO sitevariables VALUES ('protogeni/show_sslcertbox','1','1','When set, users see option on join/start project pages to create SSL certificate.',0);
INSERT INTO sitevariables VALUES ('protogeni/default_osname','','','The default os name used for ProtoGENI slivers when no os is specified on a node.',0);
INSERT INTO sitevariables VALUES ('images/root_password',NULL,'','The encryption hash of the root password to use in the MFSs.',0);
INSERT INTO sitevariables VALUES ('protogeni/idlecheck',NULL,'0','When set, do idle checks and send email about idle slices.',0);
INSERT INTO sitevariables VALUES ('protogeni/idlecheck_terminate',NULL,'0','When set, do idle checks and terminate idle slices after email warning.',0);
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
......
#
# Add emulab_sites table.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("INSERT INTO sitevariables VALUES ".
" ('protogeni/idlecheck',NULL,'0', ".
". 'When set, do idle checks and send email about ".
"idle slices.',0)")
if (!TBSiteVarExists("protogeni/idlecheck"));
DBQueryFatal("INSERT INTO sitevariables VALUES ".
" ('protogeni/idlecheck_terminate',NULL,'0', ".
" 'When set, do idle checks and terminate idle slices ".
"after email warning.',0)")
if (!TBSiteVarExists("protogeni/idlecheck_terminate"));
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment