Commit 78ba9a83 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent 1aa95140
......@@ -21,9 +21,10 @@ sub InstallUpdate($$)
Phase "newsyslog", "Updating $NEWSYSLOG_CONF", sub {
DoneIfEdited($NEWSYSLOG_CONF);
BackUpFileFatal($NEWSYSLOG_CONF);
ExecQuietFatal("sed -i .orig -e '/checknodes/d' $NEWSYSLOG_CONF");
AppendToFileFatal($NEWSYSLOG_CONF,
"$LOGDIR/checknodes.log 640 14 300 ".
"* Z /var/run/checknodes.pid");
"* Z /var/run/checknodes_daemon.pid");
};
Phase "startupfile", "Updating testbed startup file", sub {
DoneIfIdentical("$TOP_OBJDIR/rc.d/3.testbed.sh", $TESTBED_STARTUP);
......@@ -42,6 +43,9 @@ sub InstallUpdate($$)
if (! -e "$VARRUN/stated.pid") {
PhaseSkip("Testbed not running");
}
Phase "checknodes_old", "Killing off old daemon", sub {
SignalDaemon("checknodes", 'HUP');
};
if (ExecQuiet("$TBROOT/sbin/checknodes_daemon")) {
PhaseSucceed("checknodes_daemon started");
}
......
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