Skip to content
Snippets Groups Projects
Commit 9a2114cc authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Use PID to kill gunicorn

parent d54b30a1
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ start:
@echo Starting the web server on 0.0.0.0:${WEBSERVER_PORT}
@#
@tmux send-keys -t ${SESSION_NAME}:main.3 \
"gunicorn -w 4 -b 0.0.0.0:${WEBSERVER_PORT} km3mon:app" Enter
"gunicorn --pid gunicorn.pid -w 4 -b 0.0.0.0:${WEBSERVER_PORT} km3mon:app" Enter
@tmux select-layout even-vertical
@echo Starting the monitoring scripts
......@@ -100,8 +100,10 @@ start:
@tmux select-layout even-vertical
stop:
@echo Stopping monitoring session...
tmux kill-session -t ${SESSION_NAME}
killall gunicorn
kill -9 $(shell cat gunicorn.pid)
@sleep 5
clean:
rm Makefile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment