From 199d76e2534b39ea846ca345923b03198dff246c Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 20 Oct 2011 12:41:40 -0400 Subject: [PATCH] redirect output of rabbitmq install (LP: #878600) as documented in ubuntu bug bug 878600, starting the rabbitmq daemon was keeping its output filehandle open, which caused the 'tee' to never die, and an ssh connection to never close. --- stack.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 8db63f7..32ec7a0 100755 --- a/stack.sh +++ b/stack.sh @@ -351,7 +351,11 @@ cp $FILES/screenrc ~/.screenrc if [[ "$ENABLED_SERVICES" =~ "rabbit" ]]; then # Install and start rabbitmq-server - sudo apt-get install -y -q rabbitmq-server + # the temp file is necessary due to LP: #878600 + tfile=$(mktemp) + sudo apt-get install -y -q rabbitmq-server > "$tfile" 2>&1 + cat "$tfile" + rm -f "$tfile" # change the rabbit password since the default is "guest" sudo rabbitmqctl change_password guest $RABBIT_PASSWORD fi