]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-infra: add copytruncate option in logrotate
authorAli Zamani <ali.zamani@arvancloud.com>
Mon, 2 Jun 2025 08:48:10 +0000 (12:18 +0330)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 25 Jun 2025 13:41:30 +0000 (15:41 +0200)
roles/ceph-infra/templates/logrotate.conf.j2

index 3c655e2caa16c0b8b0dab85188cf07100efba49a..fa8ce46598975197bd38a0e174bda919f025b621 100644 (file)
@@ -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