From f678ab5c0b6c6f4ea45709877e109f3d41673f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Thu, 23 Apr 2015 14:51:05 +0200 Subject: [PATCH] rabbitmq-script-wrapper: Don't use "exec" in front of "su" This is useless because su(1) forks a process anyway. Furthermore, it broke RabbitMQ in Docker. Fixes #129. --- packaging/common/rabbitmq-script-wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/common/rabbitmq-script-wrapper b/packaging/common/rabbitmq-script-wrapper index 576b19789ce..674524dde09 100644 --- a/packaging/common/rabbitmq-script-wrapper +++ b/packaging/common/rabbitmq-script-wrapper @@ -37,7 +37,7 @@ elif [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then fi exec /usr/lib/rabbitmq/bin/${SCRIPT} "$@" elif [ `id -u` = 0 ] ; then - exec @SU_RABBITMQ_SH_C@ "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}" + @SU_RABBITMQ_SH_C@ "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}" else /usr/lib/rabbitmq/bin/${SCRIPT} echo