summaryrefslogtreecommitdiff
path: root/packaging/common
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2012-06-27 12:25:25 +0100
committerTim Watson <tim@rabbitmq.com>2012-06-27 12:25:25 +0100
commit5b6f240a0fd0e38365bf1986b0d2db7565ac14e0 (patch)
treefbd9c7c202f618a8b76aa7ce4fd97b63efc8aa58 /packaging/common
parentd7ff6ea6573a6ad290edda59a5a4ee61c1d3f697 (diff)
parent0d288858e3f4ca5e3111c53ebe44ea1e682d608f (diff)
downloadrabbitmq-server-git-5b6f240a0fd0e38365bf1986b0d2db7565ac14e0.tar.gz
merge default
Diffstat (limited to 'packaging/common')
-rw-r--r--packaging/common/rabbitmq-script-wrapper4
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/common/rabbitmq-script-wrapper b/packaging/common/rabbitmq-script-wrapper
index 0e59c21804..e832aed633 100644
--- a/packaging/common/rabbitmq-script-wrapper
+++ b/packaging/common/rabbitmq-script-wrapper
@@ -29,7 +29,9 @@ cd /var/lib/rabbitmq
SCRIPT=`basename $0`
-if [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then
+if [ `id -u` = `id -u rabbitmq` -a "$SCRIPT" = "rabbitmq-server" ] ; then
+ /usr/lib/rabbitmq/bin/rabbitmq-server "$@" @STDOUT_STDERR_REDIRECTION@
+elif [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then
/usr/lib/rabbitmq/bin/${SCRIPT} "$@"
elif [ `id -u` = 0 ] ; then
@SU_RABBITMQ_SH_C@ "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"