https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2012-09-30T21:17:56ZCeph Ceph - Bug #3236: logrotate.d script from debian repo does not workhttps://tracker.ceph.com/issues/3236?journal_id=135342012-09-30T21:17:56ZSage Weilsage@newdream.net
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Need More Info</i></li></ul><p>the logrotate script is an 'all of the above':<br /><pre>
invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null
# upstart reload isn't very helpful here:
# https://bugs.launchpad.net/upstart/+bug/1012938
for type in mon osd mds; do
initctl list \
| perl -ne 'print "$+{service} cluster=$+{cluster} id=$+{id}\n" if m{^(?<service>ceph-(mon|osd|mds)+)\s+\((?<cluster>[^/)]+)/(?<id>[^)]+)\) start/}' \
| while read l; do
initctl reload -- $l 2>/dev/null || :
done
done
</pre><br />it reloads via sysvinit <strong>and</strong> upstart. can you be more specific about what didn't work?</p> Ceph - Bug #3236: logrotate.d script from debian repo does not workhttps://tracker.ceph.com/issues/3236?journal_id=135372012-10-01T01:31:37ZTobias Florekceph@ibotty.net
<ul><li><strong>File</strong> <a href="/attachments/download/499/logrotate.d.ceph.diff">logrotate.d.ceph.diff</a> <a class="icon-only icon-magnifier" title="View" href="/attachments/499/logrotate.d.ceph.diff">View</a> added</li></ul><p>i did not read closely. you are, of course, right. the problem is, that on all debian systems, initctl won't exist, so you will get a message from cron about it.</p> Ceph - Bug #3236: logrotate.d script from debian repo does not workhttps://tracker.ceph.com/issues/3236?journal_id=135382012-10-01T09:03:22ZSage Weilsage@newdream.net
<ul><li><strong>Status</strong> changed from <i>Need More Info</i> to <i>Fix Under Review</i></li></ul><p>Tobias Florek wrote:</p>
<blockquote>
<p>i did not read closely. you are, of course, right. the problem is, that on all debian systems, initctl won't exist, so you will get a message from cron about it.</p>
</blockquote>
<p>Looks good. I can add your Signed-off-by I assume?</p>
<p>Thanks!</p> Ceph - Bug #3236: logrotate.d script from debian repo does not workhttps://tracker.ceph.com/issues/3236?journal_id=135412012-10-01T09:51:48ZTobias Florekceph@ibotty.net
<ul></ul><p>yes.</p> Ceph - Bug #3236: logrotate.d script from debian repo does not workhttps://tracker.ceph.com/issues/3236?journal_id=135422012-10-01T09:53:57ZSage Weilsage@newdream.net
<ul><li><strong>Status</strong> changed from <i>Fix Under Review</i> to <i>Resolved</i></li></ul>