ceph-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] redirect stdout to /dev/null when reloading
@ 2010-07-30  6:14 Thomas Mueller
  0 siblings, 0 replies; only message in thread
From: Thomas Mueller @ 2010-07-30  6:14 UTC (permalink / raw)
  To: ceph-devel; +Cc: Thomas Mueller

the reload command prints to stdout. example:

# service ceph reload
=== mon.0 ===
Reloading Ceph mon0 on hoe001...kill -1 22197...done
=== osd.0 ===
Reloading Ceph osd0 on hoe001...kill -1 22263...done


"properly" configured systems will send the output by mail to 
the administrator - this is not desired in case of successfull
reloading.


Signed-off-by: Thomas Mueller <thomas@chaschperli.ch>
---
 debian/ceph.logrotate |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/ceph.logrotate b/debian/ceph.logrotate
index baea2e9..308de50 100644
--- a/debian/ceph.logrotate
+++ b/debian/ceph.logrotate
@@ -4,6 +4,6 @@
     compress
     sharedscripts
     postrotate
-        invoke-rc.d ceph reload || service ceph reload
+        invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null
     endscript
 }
-- 
1.7.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-30  6:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-30  6:14 [PATCH] redirect stdout to /dev/null when reloading Thomas Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).