From 36965c9cf19e43c07b5e7860a17b435714e95eb6 Mon Sep 17 00:00:00 2001 From: Ali Zamani Date: Mon, 2 Jun 2025 12:18:10 +0330 Subject: [PATCH] ceph-infra: add copytruncate option in logrotate (cherry picked from commit 3371215f03211efe75c205f035c8bfddbc6d054d) --- roles/ceph-infra/templates/logrotate.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-infra/templates/logrotate.conf.j2 b/roles/ceph-infra/templates/logrotate.conf.j2 index 3c655e2ca..fa8ce4659 100644 --- a/roles/ceph-infra/templates/logrotate.conf.j2 +++ b/roles/ceph-infra/templates/logrotate.conf.j2 @@ -2,6 +2,7 @@ rotate {{ ceph_logrotate_rotate | default(7) }} {{ ceph_logrotate_frequency | default('daily') }} compress + copytruncate sharedscripts postrotate killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw rbd-mirror || pkill -1 -x "ceph-mon|ceph-mgr|ceph-mds|ceph-osd|ceph-fuse|radosgw|rbd-mirror" || true -- 2.47.3