Commit cac4744f authored by Leigh Stoller's avatar Leigh Stoller

Add missing log file rolling.

parent cd272d36
......@@ -207,7 +207,16 @@ sub Install($$$)
"$LOGDIR/apache_ssl_request_log 644 7 10000 * BZ ".
"/var/run/httpd.pid",
"$LOGDIR/apache_ssl_access_log 644 7 10000 * BZ ".
"/var/run/httpd.pid");
"/var/run/httpd.pid",
"$LOGDIR/portal_monitor.log 644 7 1000 * Z ".
"/var/run/portal_monitor.pid",
"$LOGDIR/apt_daemon.log 644 7 1000 * Z ".
"/var/run/apt_daemon.pid",
"$LOGDIR/aptevent_daemon.log 644 7 1000 * Z ".
"/var/run/aptevent_daemon.pid",
"$LOGDIR/apt_scheduler.log 644 7 1000 * Z ".
"/var/run/apt_scheduler.pid"
);
if ($PROTOGENI_GENIRACK) {
@nsyslog_lines = (@nsyslog_lines,
......
#
# APT logs.
#
use strict;
use libinstall;
use installvars;
sub InstallUpdate($$)
{
my ($version, $phase) = @_;
#
# If something should run in the pre-install phase.
#
if ($phase eq "pre") {
Phase "setup", "Adding apt logging", sub {
Phase "newsyslog", "Updating $NEWSYSLOG_CONF", sub {
DoneIfEdited($NEWSYSLOG_CONF);
BackUpFileFatal($NEWSYSLOG_CONF);
AppendToFileFatal($NEWSYSLOG_CONF,
"$LOGDIR/portal_monitor.log 644 7 1000 * Z ".
"/var/run/portal_monitor.pid",
"$LOGDIR/apt_daemon.log 644 7 1000 * Z ".
"/var/run/apt_daemon.pid",
"$LOGDIR/aptevent_daemon.log 644 7 1000 * Z ".
"/var/run/aptevent_daemon.pid",
"$LOGDIR/apt_scheduler.log 644 7 1000 * Z ".
"/var/run/apt_scheduler.pid");
};
Phase "syslogd", "Restarting syslogd", sub {
HUPDaemon("syslog");
};
};
}
#
# 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