]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
logrotate: add pkill as backup in case of no killall 16586/head
authorTianshan Qu <tianshan@xsky.com>
Thu, 27 Jul 2017 06:30:10 +0000 (14:30 +0800)
committerTianshan Qu <tianshan@xsky.com>
Thu, 27 Jul 2017 06:30:10 +0000 (14:30 +0800)
there is no killall in centos7 minimal

Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/logrotate.conf

index 8e9354afb322dcaf5a6f026d6973efab024dc864..6d8adc6cca353580e486ce31bf376b452308e310 100644 (file)
@@ -4,7 +4,7 @@
     compress
     sharedscripts
     postrotate
-        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 || pkill -1 -x "ceph-mon|ceph-mgr|ceph-mds|ceph-osd|ceph-fuse|radosgw" || true
     endscript
     missingok
     notifempty