Gentoo Archives: gentoo-commits

From: "Sergey Popov (pinkbyte)" <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/ceph/files: ceph.logrotate
Date: Tue, 24 Feb 2015 08:55:03
Message-Id: 20150224085459.C620D12709@oystercatcher.gentoo.org
1 pinkbyte 15/02/24 08:54:59
2
3 Modified: ceph.logrotate
4 Log:
5 QA: do not pollute cron output in logrotate script in cases, when no daemons, but only ceph client is used
6
7 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0x60C0742D1F357D42)
8
9 Revision Changes Path
10 1.2 sys-cluster/ceph/files/ceph.logrotate
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate?r1=1.1&r2=1.2
15
16 Index: ceph.logrotate
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- ceph.logrotate 21 May 2014 07:43:24 -0000 1.1
23 +++ ceph.logrotate 24 Feb 2015 08:54:59 -0000 1.2
24 @@ -9,12 +9,12 @@
25 compress
26 sharedscripts
27 prerotate
28 - for dmn in $(cd /run/ceph && ls *.asok); do
29 + for dmn in $(cd /run/ceph && ls *.asok 2>/dev/null); do
30 ceph --admin-daemon /run/ceph/${dmn} log flush 2>/dev/null >&1
31 done
32 endscript
33 postrotate
34 - for dmn in $(cd /run/ceph && ls *.asok); do
35 + for dmn in $(cd /run/ceph && ls *.asok 2>/dev/null); do
36 ceph --admin-daemon /run/ceph/${dmn} log reopen 2>/dev/null >&1
37 done
38 endscript