summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2015-02-24 08:54:59 +0000
committerSergey Popov <pinkbyte@gentoo.org>2015-02-24 08:54:59 +0000
commitb04b2de3ca152515d479b264b14cc6f215c8e8bd (patch)
treef6b8c6f78991159dbb3b756b95fd53b0f3ac9e33 /sys-cluster/ceph
parentStable for alpha, wrt bug #533270 (diff)
downloadgentoo-2-b04b2de3ca152515d479b264b14cc6f215c8e8bd.tar.gz
gentoo-2-b04b2de3ca152515d479b264b14cc6f215c8e8bd.tar.bz2
gentoo-2-b04b2de3ca152515d479b264b14cc6f215c8e8bd.zip
QA: do not pollute cron output in logrotate script in cases, when no daemons, but only ceph client is used
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0x60C0742D1F357D42)
Diffstat (limited to 'sys-cluster/ceph')
-rw-r--r--sys-cluster/ceph/ChangeLog8
-rw-r--r--sys-cluster/ceph/files/ceph.logrotate4
2 files changed, 8 insertions, 4 deletions
diff --git a/sys-cluster/ceph/ChangeLog b/sys-cluster/ceph/ChangeLog
index 01c64cf69365..ceb9826856b5 100644
--- a/sys-cluster/ceph/ChangeLog
+++ b/sys-cluster/ceph/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/ceph
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ChangeLog,v 1.62 2014/11/05 07:04:12 dlan Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ceph/ChangeLog,v 1.63 2015/02/24 08:54:59 pinkbyte Exp $
+
+ 24 Feb 2015; Sergey Popov <pinkbyte@gentoo.org> files/ceph.logrotate:
+ QA: do not pollute cron output in logrotate script in cases, when no
+ daemons, but only ceph client is used
*ceph-0.80.7 (05 Nov 2014)
diff --git a/sys-cluster/ceph/files/ceph.logrotate b/sys-cluster/ceph/files/ceph.logrotate
index 16028aea78c6..3cb6b056f26e 100644
--- a/sys-cluster/ceph/files/ceph.logrotate
+++ b/sys-cluster/ceph/files/ceph.logrotate
@@ -9,12 +9,12 @@
compress
sharedscripts
prerotate
- for dmn in $(cd /run/ceph && ls *.asok); do
+ for dmn in $(cd /run/ceph && ls *.asok 2>/dev/null); do
ceph --admin-daemon /run/ceph/${dmn} log flush 2>/dev/null >&1
done
endscript
postrotate
- for dmn in $(cd /run/ceph && ls *.asok); do
+ for dmn in $(cd /run/ceph && ls *.asok 2>/dev/null); do
ceph --admin-daemon /run/ceph/${dmn} log reopen 2>/dev/null >&1
done
endscript