All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit c6747fd6 authored by Mike Hibler's avatar Mike Hibler

Add updates to roll the lease_daemon logfile.

parent 4f32d9c0
......@@ -182,6 +182,8 @@ sub Install($$$)
"$LOGDIR/flowvisor.log 640 7 1000 * Z",
"$LOGDIR/poolmonitor.log 644 7 2000 * Z ".
"/var/run/poolmonitor.pid",
"$LOGDIR/lease_daemon.log 644 14 1000 * Z ".
"/var/run/lease_daemon.pid",
);
};
......
#
# Add lease_daemon.
#
use strict;
use libinstall;
use installvars;
my $LOGFILE = "$TBROOT/log/lease_daemon.log";
my $TESTBED_STARTUP = "/usr/local/etc/rc.d/3.testbed.sh";
sub InstallUpdate($$)
{
my ($version, $phase) = @_;
#
# If something should run in the pre-install phase.
#
if ($phase eq "pre") {
Phase "poolmonitor.log", "Adding lease_daemon logging", sub {
DoneIfEdited($NEWSYSLOG_CONF);
BackUpFileFatal($NEWSYSLOG_CONF);
AppendToFileFatal($NEWSYSLOG_CONF,
"$LOGFILE 644 14 1000 * Z /var/run/lease_daemon.pid");
};
Phase "startupfile", "Updating testbed startup file", sub {
DoneIfIdentical("$TOP_OBJDIR/rc.d/3.testbed.sh", $TESTBED_STARTUP);
DiffFiles("$TOP_OBJDIR/rc.d/3.testbed.sh", $TESTBED_STARTUP);
ExecQuietFatal("$GMAKE -C $TOP_OBJDIR/rc.d install");
};
}
#
# If something should run in the post-install phase.
#
if ($phase eq "post") {
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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