]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
logrotate: send SIGHUP to ceph-exporter on log rotation 67371/head
authoran.groshev <an.groshev@tensor.ru>
Tue, 17 Feb 2026 08:26:46 +0000 (11:26 +0300)
committerKefu Chai <k.chai@proxmox.com>
Thu, 21 May 2026 03:40:08 +0000 (11:40 +0800)
ceph-exporter registers a SIGHUP handler that reopens its log files,
but it was missing from the postrotate killall/pkill list.  Without the
signal, the daemon keeps an open fd to the already-rotated file and
continues writing there, causing /var/log/ceph to fill up.

Signed-off-by: an.groshev <an.groshev@tensor.ru>
src/logrotate.conf

index a9a452dd6566f92dab3d537bb5589f885edf0e79..869ead830f44757a888acb9e7cefc81585bad907 100644 (file)
@@ -4,7 +4,7 @@
     compress
     sharedscripts
     postrotate
-        killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw rbd-mirror cephfs-mirror || pkill -1 -x "ceph-mon|ceph-mgr|ceph-mds|ceph-osd|ceph-fuse|radosgw|rbd-mirror|cephfs-mirror" || true
+        killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw rbd-mirror cephfs-mirror ceph-exporter || pkill -1 -x "ceph-mon|ceph-mgr|ceph-mds|ceph-osd|ceph-fuse|radosgw|rbd-mirror|cephfs-mirror|ceph-exporter" || true
     endscript
     missingok
     notifempty