Commit 32d4f3ab authored by Ryan Jackson's avatar Ryan Jackson

Don't update accounts on a subboss

parent 5b05965b
......@@ -385,12 +385,14 @@ sub sendisalive($)
#
logmsg("isalive: succeeded after $retry{isalive} retries\n")
if ($retry{isalive});
if ($updatefailed ||
$tmccresults[0] =~ /^UPDATE=1$/) {
logmsg("isalive: running an account update\n");
system("$BINDIR/update -i -l");
$updatefailed = $?;
logmsg("isalive: update done\n");
if (!SUBBOSS()) {
if ($updatefailed ||
$tmccresults[0] =~ /^UPDATE=1$/) {
logmsg("isalive: running an account update\n");
system("$BINDIR/update -i -l");
$updatefailed = $?;
logmsg("isalive: update done\n");
}
}
}
......@@ -765,8 +767,8 @@ sub sendrusage($)
#
# Failed, schedule a retry using a backoff.
# XXX: removed so that we know when a plab node is back ASAP.
# Just log the failure and reschedule at the normal time.
#
# Just log the failure and reschedule at the normal time.
#
#
# Failed miserably, just whine and reschedule at the normal time.
......@@ -779,12 +781,14 @@ sub sendrusage($)
#
logmsg("rusage: succeeded after $retry{rusage} retries\n")
if ($retry{rusage});
if ($updatefailed ||
$tmccresults[0] =~ /^UPDATE=1$/) {
logmsg("rusage: running an account update\n");
system("$BINDIR/update -i -l");
$updatefailed = $?;
logmsg("rusage: update done\n");
if (!SUBBOSS()) {
if ($updatefailed ||
$tmccresults[0] =~ /^UPDATE=1$/) {
logmsg("rusage: running an account update\n");
system("$BINDIR/update -i -l");
$updatefailed = $?;
logmsg("rusage: update done\n");
}
}
}
......
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