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 #2

Updated by Loïc Dachary over 8 years ago

  • Tracker changed from Bug to Fix
  • Status changed from New to In Progress
  • Assignee set to Dan van der Ster
Actions #3

Updated by Sage Weil over 8 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF