← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ilkeremrekoc/launchpad-mojo-specs/+git/private:logrotate-add into ~launchpad/launchpad-mojo-specs/+git/private:master

 

İlker Emre Koç has proposed merging ~ilkeremrekoc/launchpad-mojo-specs/+git/private:logrotate-add into ~launchpad/launchpad-mojo-specs/+git/private:master.

Commit message:
Add hourly logrotate config

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ilkeremrekoc/launchpad-mojo-specs/+git/private/+merge/490477
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ilkeremrekoc/launchpad-mojo-specs/+git/private:logrotate-add into ~launchpad/launchpad-mojo-specs/+git/private:master.
diff --git a/lp-fetch-service/bundle.yaml b/lp-fetch-service/bundle.yaml
index 70475e1..a4cfdb9 100644
--- a/lp-fetch-service/bundle.yaml
+++ b/lp-fetch-service/bundle.yaml
@@ -192,6 +192,18 @@ applications:
         revision: {{ fetch_service_snap_revision }}
         log_hosts_allow: "launchpad-bastion-ps5.internal"
         log.file: "fetch-service.log"
+        logrotate_config: |-
+          /var/snap/fetch-service/current/*.log {
+              hourly
+              rotate 1248
+              missingok
+              notifempty
+              compress
+              delaycompress
+              postrotate
+                  invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true
+              endscript
+          }
   nrpe:
     charm: ch:nrpe
     channel: stable

Follow ups