diff mbox

redirect stdout to /dev/null when reloading

Message ID 1280470456-6210-1-git-send-email-thomas@chaschperli.ch (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Mueller July 30, 2010, 6:14 a.m. UTC
None
diff mbox

Patch

=== 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
 }