From: Dan van der Ster Date: Fri, 11 Sep 2015 07:30:04 +0000 (+0200) Subject: logrotate: ignore exit status 1 from killall X-Git-Tag: v9.1.0~161^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa4a5b0d15cb720561d7ba9ff2b1ca472f433820;p=ceph.git logrotate: ignore exit status 1 from killall 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 --- diff --git a/src/logrotate.conf b/src/logrotate.conf index 0c5df242b78d..50e7ee886704 100644 --- a/src/logrotate.conf +++ b/src/logrotate.conf @@ -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