This is an automated email from the ASF dual-hosted git repository. membphis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push: new 51b867f fix bug: Execute command 'make run' multiple times, will start multiple processes (#1692) 51b867f is described below commit 51b867f37a0b71cd6c6d2a8e434f88b39fe66a51 Author: Kev.Hu <kev...@126.com> AuthorDate: Thu Jun 11 13:00:04 2020 +0800 fix bug: Execute command 'make run' multiple times, will start multiple processes (#1692) Fix #1690 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 760c692..ec2771b 100644 --- a/Makefile +++ b/Makefile @@ -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