Skip to content

Commit

Permalink
Make wait command wait for start_rabbitmq_server command
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Fedotov committed Dec 3, 2015
1 parent d5f73f7 commit e56bec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/rabbitmq-server
Expand Up @@ -161,7 +161,8 @@ if [ 'x' = "x$RABBITMQ_ALLOW_INPUT" -a -z "$detached" ]; then
start_rabbitmq_server "$@" &

# Block until RabbitMQ exits or a signal is caught.
wait
# Waits for last command (which is start_rabbitmq_server)
wait $!
else
start_rabbitmq_server "$@"
fi

0 comments on commit e56bec6

Please sign in to comment.