Skip to content

Commit

Permalink
fix bug: Execute command 'make run' multiple times, will start multip…
Browse files Browse the repository at this point in the history
…le processes (apache#1692)

Fix apache#1690
  • Loading branch information
kevhoo authored and SaberMaster committed Jun 30, 2020
1 parent d05b27c commit 0e6807f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ init: default
### run: Start the apisix server
.PHONY: run
run: default
ifeq ("$(wildcard logs/nginx.pid)", "")
mkdir -p logs
mkdir -p /tmp/apisix_cores/
$(OR_EXEC) -p $$PWD/ -c $$PWD/conf/nginx.conf
else
@echo "APISIX is running..."
endif


### stop: Stop the apisix server
Expand Down

0 comments on commit 0e6807f

Please sign in to comment.