summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-11-16 13:19:00 +0000
committerMatthew Sackman <matthew@lshift.net>2009-11-16 13:19:00 +0000
commit55290f3b8b1ae46a4f8dacf2db458dd1fd98c7b8 (patch)
tree6566c49bfdcd8954b7ff8634712e8824cf6a8dba
parent081f439f5af1b4566b662c3dc708be0f85fa97ea (diff)
parent52c082117d32600f2fdb274394418450626f6ece (diff)
downloadrabbitmq-server-55290f3b8b1ae46a4f8dacf2db458dd1fd98c7b8.tar.gz
merging bug 21903 into default
-rw-r--r--packaging/common/rabbitmq-server.init2
-rw-r--r--packaging/debs/Debian/debian/postrm.in3
2 files changed, 3 insertions, 2 deletions
diff --git a/packaging/common/rabbitmq-server.init b/packaging/common/rabbitmq-server.init
index dc305975..39d23983 100644
--- a/packaging/common/rabbitmq-server.init
+++ b/packaging/common/rabbitmq-server.init
@@ -66,8 +66,6 @@ stop_rabbitmq () {
$DAEMON stop_all > ${INIT_LOG_DIR}/shutdown_log 2> ${INIT_LOG_DIR}/shutdown_err
RETVAL=$?
if [ $RETVAL = 0 ] ; then
- # Try to stop epmd if run by the rabbitmq user
- pkill -u rabbitmq epmd || :
[ -n "$LOCK_FILE" ] && rm -rf $LOCK_FILE
else
echo FAILED - check ${INIT_LOG_DIR}/shutdown_log, _err
diff --git a/packaging/debs/Debian/debian/postrm.in b/packaging/debs/Debian/debian/postrm.in
index fc15e034..bfcf1f53 100644
--- a/packaging/debs/Debian/debian/postrm.in
+++ b/packaging/debs/Debian/debian/postrm.in
@@ -40,6 +40,9 @@ case "$1" in
rm -f @RABBIT_LIB@/ebin/rabbit.$ext
done
if getent passwd rabbitmq >/dev/null; then
+ # Stop epmd if run by the rabbitmq user
+ pkill -u rabbitmq epmd || :
+
deluser rabbitmq
fi
if getent group rabbitmq >/dev/null; then