Skip to content

Instantly share code, notes, and snippets.

@cgriego
Created May 9, 2012 21:30
Show Gist options
  • Save cgriego/2649046 to your computer and use it in GitHub Desktop.
Save cgriego/2649046 to your computer and use it in GitHub Desktop.
/etc/init.d/rabbitmq-server fix
--- fails/rabbitmq-server 2012-04-27 09:38:57.000000000 -0500
+++ works/rabbitmq-server 2012-05-09 16:19:30.000000000 -0500
@@ -61,9 +61,10 @@
RABBITMQ_PID_FILE=$PID_FILE start-stop-daemon --quiet \
--chuid rabbitmq --start --exec $DAEMON \
--pidfile "$RABBITMQ_PID_FILE" \
+ --background \
> "${INIT_LOG_DIR}/startup_log" \
2> "${INIT_LOG_DIR}/startup_err" \
- 0<&- &
+ 0<&-
$CONTROL wait $PID_FILE >/dev/null 2>&1
RETVAL=$?
set -e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment