]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
redirect stdout to /dev/null when reloading
authorThomas Mueller <thomas@chaschperli.ch>
Fri, 30 Jul 2010 06:14:16 +0000 (08:14 +0200)
committerSage Weil <sage@newdream.net>
Fri, 30 Jul 2010 16:18:54 +0000 (09:18 -0700)
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>
Signed-off-by: Sage Weil <sage@newdream.net>
debian/ceph.logrotate

index baea2e9b51aaa697044e12e7909e9161c5940636..308de5019bf86506f36f8f3617b8753866c4557d 100644 (file)
@@ -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
 }