]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
logrotate: ignore exit status 1 from killall
authorDan van der Ster <daniel.vanderster@cern.ch>
Fri, 11 Sep 2015 07:30:04 +0000 (09:30 +0200)
committerDan van der Ster <daniel.vanderster@cern.ch>
Fri, 11 Sep 2015 07:30:04 +0000 (09:30 +0200)
If any of ceph-osd, ceph-mon, ceph-mds were not running then
killall -q will exit status 1, leading to anacron sending a mail

  error: error running shared postrotate script for '/var/log/ceph/*.log '

Fix by overriding the exit status with || true.

Fixes: #13033
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
src/logrotate.conf

index 0c5df242b78d46d8afb6ad476307d961c71bf6ed..50e7ee88670487c0c512d3f27087d2f816e81b1b 100644 (file)
@@ -4,7 +4,7 @@
     compress
     sharedscripts
     postrotate
-       killall -q -1 ceph-mon ceph-mds ceph-osd
+        killall -q -1 ceph-mon ceph-mds ceph-osd || true
     endscript
     missingok
     notifempty