Browse code

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.

Scott Moser authored on 2011/10/21 01:41:40
Showing 1 changed files
... ...
@@ -351,7 +351,11 @@ cp $FILES/screenrc ~/.screenrc
351 351
 
352 352
 if [[ "$ENABLED_SERVICES" =~ "rabbit" ]]; then
353 353
     # Install and start rabbitmq-server
354
-    sudo apt-get install -y -q rabbitmq-server
354
+    # the temp file is necessary due to LP: #878600
355
+    tfile=$(mktemp)
356
+    sudo apt-get install -y -q rabbitmq-server > "$tfile" 2>&1
357
+    cat "$tfile"
358
+    rm -f "$tfile"
355 359
     # change the rabbit password since the default is "guest"
356 360
     sudo rabbitmqctl change_password guest $RABBIT_PASSWORD
357 361
 fi