Project

General

Profile

Actions

Fix #13033

closed

logrotate: error in postrotate script

Added by Dan van der Ster over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The simplified logrotate scripts give this error:

/etc/cron.daily/logrotate:

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

This is because

killall -q -1 ceph-mon ceph-osd ceph-mds

will still return exit code 1 if not all of the listed daemons were killed (e.g. if they were not running on this server). Fix by adding

|| true

to the post rotate. PR incoming.

Actions

Also available in: Atom PDF