Commit abb90f05 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Do not update the shared node experiment when logins are turned off.

Typically means something is happening, and do not want to get caught
in the middle.

Just a bandaid. There are so many ways this daemon could mess up.
Needs a bunch of work.
parent 56e019c3
#!/usr/bin/perl -w
# Copyright (c) 2009 University of Utah and the Flux Group.
# Copyright (c) 2009, 2010 University of Utah and the Flux Group.
# All rights reserved.
use strict;
......@@ -145,6 +145,8 @@ if (!defined($image)) {
while (1) {
my $disabled;
# Use a long period; we do not want the pool to change too fast.
if (!$startup) {
......@@ -152,9 +154,13 @@ while (1) {
else {
print "Pool Daemon running at ".`date`;
if (! TBGetSiteVar("web/nologins", \$disabled) || $disabled) {
print " Skipping this loop cause of nologins\n";
$experiment->Refresh() == 0
or fatal("Could not reload $experiment");
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