summaryrefslogtreecommitdiff
path: root/packaging/debs/Debian
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/debs/Debian')
-rw-r--r--packaging/debs/Debian/debian/init.d5
-rw-r--r--packaging/debs/Debian/debian/rabbitmq-server.logrotate2
2 files changed, 5 insertions, 2 deletions
diff --git a/packaging/debs/Debian/debian/init.d b/packaging/debs/Debian/debian/init.d
index aff0ce4d..ef66add5 100644
--- a/packaging/debs/Debian/debian/init.d
+++ b/packaging/debs/Debian/debian/init.d
@@ -79,7 +79,10 @@ status_rabbitmq() {
rotate_logs_rabbitmq() {
set +e
- $DAEMON rotate_logs ${ROTATE_SUFFIX} 2>&1
+ $DAEMON rotate_logs ${ROTATE_SUFFIX}
+ if [ $? != 0 ] ; then
+ RETVAL=1
+ fi
set -e
}
diff --git a/packaging/debs/Debian/debian/rabbitmq-server.logrotate b/packaging/debs/Debian/debian/rabbitmq-server.logrotate
index bfd6b8da..c786df77 100644
--- a/packaging/debs/Debian/debian/rabbitmq-server.logrotate
+++ b/packaging/debs/Debian/debian/rabbitmq-server.logrotate
@@ -7,6 +7,6 @@
notifempty
sharedscripts
postrotate
- /etc/init.d/rabbitmq-server rotate-logs
+ /etc/init.d/rabbitmq-server rotate-logs > /dev/null
endscript
}