]> git.pld-linux.org Git - packages/ceph.git/blobdiff - ceph.logrotate.patch
- BR: boost-python-devel
[packages/ceph.git] / ceph.logrotate.patch
index 640372dd30f2b3b1b5709d0ca5c5f8580348cba8..cdae0e6f791504123aec956952e2a5a3c10104d1 100644 (file)
@@ -1,25 +1,12 @@
---- ceph-0.54/src/logrotate.conf.orig  2012-11-15 21:05:38.519614603 +0100
-+++ ceph-0.54/src/logrotate.conf       2012-11-15 21:09:14.862943424 +0100
-@@ -4,21 +4,7 @@
+--- ceph-12.2.13/src/logrotate.conf.orig       2020-05-28 06:45:00.496496556 +0200
++++ ceph-12.2.13/src/logrotate.conf    2020-05-28 06:47:07.249143211 +0200
+@@ -4,8 +4,7 @@
      compress
      sharedscripts
      postrotate
--        if [ -x `which invoke-rc.d` ]; then
--            invoke-rc.d ceph reload >/dev/null
--        elif [ -x `which service` ]; then
--            service ceph reload >/dev/null
--        elif [ -x `which initctl` ]; then
--            # upstart reload isn't very helpful here:
--            #   https://bugs.launchpad.net/upstart/+bug/1012938
--            for type in mon osd mds; do
--              initctl list \
--                  | perl -ne 'print "$+{service} cluster=$+{cluster} id=$+{id}\n" if m{^(?<service>ceph-(mon|osd|mds)+)\s+\((?<cluster>[^/)]+)/(?<id>[^)]+)\) start/}' \
--                  | while read l; do
--                  initctl reload -- $l 2>/dev/null || :
--              done
--            done
--        fi
-+            service ceph reload >/dev/null 2>/dev/null
+-        killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw || true
+-        killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw rbd-mirror || true
++        cephctl reload >/dev/null 2>/dev/null
      endscript
      missingok
- }
+     notifempty
This page took 0.078773 seconds and 4 git commands to generate.