Skip to contentSkip to conversation

redirect stdout to /dev/null when reloading

PATCH New Thomas Mueller 1 participant 1 message Jul 30, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 redirect stdout to /dev/null when reloading

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.

---
 debian/ceph.logrotate |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
debian/ceph.logrotate +1 -1
index baea2e9..308de50 100644
@@ -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
 }
Signature · 1 line
1.7.1