Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-389496: Avoid conflicts in configuration for rotating xapi logs #5507

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ install:
$(IPROG) xapi-health-check $(DESTDIR)$(LIBEXECDIR)
$(IPROG) mail-alarm $(DESTDIR)$(LIBEXECDIR)
$(IDATA) audit-logrotate $(DESTDIR)/etc/logrotate.d/audit
$(IDATA) xapi-logrotate.conf $(DESTDIR)$(ETCXENDIR)
$(IPROG) xapi-logrotate.sh $(DESTDIR)$(LIBEXECDIR)
$(IDATA) xapi-logrotate.conf $(DESTDIR)/etc/logrotate.d/xapi
$(IPROG) xapi-tracing-log-trim.sh $(DESTDIR)$(LIBEXECDIR)
$(IPROG) xapi-wait-init-complete $(DESTDIR)$(OPTDIR)/bin
$(IPROG) xapi-autostart-vms $(DESTDIR)$(OPTDIR)/bin
Expand Down Expand Up @@ -158,7 +157,6 @@ install:
$(IPROG) certificate-check $(DESTDIR)/etc/cron.daily/
$(IPROG) certificate-refresh $(DESTDIR)/etc/cron.hourly/
mkdir -p $(DESTDIR)/etc/cron.d
$(IDATA) xapi-logrotate.cron $(DESTDIR)/etc/cron.d/xapi-logrotate.cron
$(IDATA) xapi-tracing-log-trim.cron $(DESTDIR)/etc/cron.d/xapi-tracing-log-trim.cron
mkdir -p $(DESTDIR)/opt/xensource/gpg
# templates
Expand Down
20 changes: 0 additions & 20 deletions scripts/xapi-logrotate.conf
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# see "man logrotate" for details
# rotate log files daily
daily

# keep one months worth of backlogs
rotate 31

# create new (empty) log files after rotating old ones
create

# compress log files
compress
delaycompress

# All the general settings above are copied from /etc/logrotate.conf
# as installed by the logrotate RPM.

/var/log/xensource.log {
missingok

Expand All @@ -26,9 +9,6 @@ delaycompress
# When rotating, remove any rotated logs older than this many days.
maxage 31

# Rotate when file exceeds this size, even if we rotated it today already.
maxsize 100M

# Keep up to this many old files.
# (When considering total size, expect a compression factor around 10-20.)
rotate 100
Expand Down
3 changes: 0 additions & 3 deletions scripts/xapi-logrotate.cron

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/xapi-logrotate.sh

This file was deleted.

Loading