Commit 551d0933 authored by Leigh Stoller's avatar Leigh Stoller

Set new sitevar general/testbed_shutdown ... intended to replace

some of the places we use nologins.
parent 7ba1eaf5
......@@ -81,7 +81,8 @@ sub Restart()
print "\n";
print "Turning on the web interface and allowing swaps\n";
if (system("$SETSITEVAR web/nologins -") ||
if (system("$SETSITEVAR general/testbed_shutdown -") ||
system("$SETSITEVAR web/nologins -") ||
system("$SETSITEVAR web/message -")) {
print "*** Could not renable the web interface and swapping!\n";
exit(1);
......@@ -110,6 +111,10 @@ system("$SETSITEVAR web/nologins 1");
if ($?) {
Fatal("Could not disable web logins and experiment swaps");
}
system("$SETSITEVAR general/testbed_shutdown 1");
if ($?) {
Fatal("Could not set general/testbed_shutdown");
}
print "-> Waiting a few seconds for testbed to quiet down ...\n";
sleep(5);
......
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