Commit 08f5b49c authored by David Johnson's avatar David Johnson
Browse files

Handle the nonstateful startup case; etc.

parent 1fa597fe
......@@ -17,7 +17,7 @@ use POSIX ":sys_wait_h";
#
sub usage()
{
print STDERR "Usage: plabmonitor [-dS]\n";
print STDERR "Usage: plabmonitord [-dS]\n";
print STDERR " -d Debug mode.\n";
print STDERR " -S Run WITHOUT reading monitor state from database;\n";
print STDERR " new state will still be written (default is to" .
......@@ -186,7 +186,10 @@ $SIG{INT} = \&termsig;
# If we ever need the history to hang around longer, have to use a better way
# to only set consec* vars once (easy).
#
my $seqref = getNodeHistSequences();
my $seqref = {};
if ($stateful) {
$seqref = getNodeHistSequences();
}
#
# Main loop: grind around looking for nodes to check in the various
......
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