Skip to content

Commit

Permalink
make start-background-node: Use "rabbitmq-server &"
Browse files Browse the repository at this point in the history
... not "make run-background-node", because the latter does not write a
PID file.
  • Loading branch information
dumbbell committed Jul 6, 2015
1 parent 16ad85f commit 8412720
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,12 @@ run-qc: all
start-background-node: all
-rm -f $(RABBITMQ_MNESIA_DIR).pid
mkdir -p $(RABBITMQ_MNESIA_DIR)
nohup sh -c "$(MAKE) run-background-node > $(RABBITMQ_MNESIA_DIR)/startup_log 2> $(RABBITMQ_MNESIA_DIR)/startup_err" > /dev/null &
$(BASIC_SCRIPT_ENVIRONMENT_SETTINGS) \
RABBITMQ_NODE_ONLY=true \
RABBITMQ_SERVER_START_ARGS="$(RABBITMQ_SERVER_START_ARGS)" \
./scripts/rabbitmq-server \
> $(RABBITMQ_MNESIA_DIR)/startup_log \
2> $(RABBITMQ_MNESIA_DIR)/startup_err &
./scripts/rabbitmqctl -n $(RABBITMQ_NODENAME) wait $(RABBITMQ_MNESIA_DIR).pid kernel

start-rabbit-on-node: all
Expand Down

0 comments on commit 8412720

Please sign in to comment.