From: Ali Zamani Date: Mon, 2 Jun 2025 08:48:10 +0000 (+0330) Subject: ceph-infra: add copytruncate option in logrotate X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3371215f03211efe75c205f035c8bfddbc6d054d;p=ceph-ansible.git ceph-infra: add copytruncate option in logrotate --- 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