From 46e1277bdee80d020dfcdc652d8a004ae3e89b53 Mon Sep 17 00:00:00 2001 From: Julien Leduc <julien.leduc@cern.ch> Date: Mon, 25 Nov 2019 14:02:15 +0100 Subject: [PATCH] Adding logrotate for container based logs: these do not use rsyslogd but should be copy truncated instead of being moved. --- .../cc7/etc/logrotate.d/cta-frontend | 19 +++++++++++++++++++ .../ctafrontend/cc7/etc/logrotate.d/cta-rmcd | 9 +++++++++ .../ctafrontend/cc7/etc/logrotate.d/cta-taped | 9 +++++++++ .../ctafrontend/cc7/etc/logrotate.d/cta-xrmcd | 9 +++++++++ 4 files changed, 46 insertions(+) create mode 100644 continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-frontend create mode 100644 continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-rmcd create mode 100644 continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-taped create mode 100644 continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-xrmcd diff --git a/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-frontend b/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-frontend new file mode 100644 index 0000000000..99aaef739d --- /dev/null +++ b/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-frontend @@ -0,0 +1,19 @@ +/var/log/cta/cta-frontend.log { + daily + missingok + rotate 500 + copytruncate + create 755 cta tape + compress + delaycompress +} + +/var/log/cta/cta-frontend-xrootd.log { + daily + missingok + rotate 500 + copytruncate + create 755 cta tape + compress + delaycompress +} diff --git a/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-rmcd b/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-rmcd new file mode 100644 index 0000000000..26c4403d21 --- /dev/null +++ b/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-rmcd @@ -0,0 +1,9 @@ +/var/log/cta/cta-rmcd.log { + daily + missingok + rotate 500 + copytruncate + create 755 cta tape + compress + delaycompress +} diff --git a/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-taped b/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-taped new file mode 100644 index 0000000000..1260d6fd83 --- /dev/null +++ b/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-taped @@ -0,0 +1,9 @@ +/var/log/cta/cta-taped.log { + daily + missingok + rotate 500 + copytruncate + create 755 cta tape + compress + delaycompress +} diff --git a/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-xrmcd b/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-xrmcd new file mode 100644 index 0000000000..f93bb0a5af --- /dev/null +++ b/continuousintegration/docker/ctafrontend/cc7/etc/logrotate.d/cta-xrmcd @@ -0,0 +1,9 @@ +/var/log/cta/cta-xrmcd.log { + daily + missingok + rotate 500 + copytruncate + create 755 cta tape + compress + delaycompress +} -- GitLab