pinkbyte 15/02/24 08:54:59 Modified: ceph.logrotate Log: 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)
Revision Changes Path 1.2 sys-cluster/ceph/files/ceph.logrotate file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate?r1=1.1&r2=1.2 Index: ceph.logrotate =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ceph.logrotate 21 May 2014 07:43:24 -0000 1.1 +++ ceph.logrotate 24 Feb 2015 08:54:59 -0000 1.2 @@ -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
