This commit is contained in:
10
Makefile
10
Makefile
@@ -70,9 +70,13 @@ author-stop:
|
||||
author-restart: $(VENV) author-stop
|
||||
@echo "Starting authoring UI on port $(AUTHOR_PORT)..."
|
||||
@mkdir -p /home/zaine/logs
|
||||
@start-stop-daemon --start --background --make-pidfile --pidfile "$(AUTHOR_PID)" \
|
||||
--chdir "$(CURDIR)" --startas "$(CURDIR)/$(PY)" -- \
|
||||
authoring_server.py > "$(AUTHOR_LOG)" 2>&1
|
||||
@if command -v start-stop-daemon >/dev/null 2>&1; then \
|
||||
start-stop-daemon --start --background --make-pidfile --pidfile "$(AUTHOR_PID)" \
|
||||
--chdir "$(CURDIR)" --startas "$(CURDIR)/$(PY)" -- \
|
||||
authoring_server.py > "$(AUTHOR_LOG)" 2>&1; \
|
||||
else \
|
||||
cd "$(CURDIR)" && { nohup "$(CURDIR)/$(PY)" authoring_server.py > "$(AUTHOR_LOG)" 2>&1 & echo $$! > "$(AUTHOR_PID)"; }; \
|
||||
fi
|
||||
@echo "Waiting for authoring UI and page list to respond..."
|
||||
@for i in 1 2 3 4 5 6 7 8 9 10; do \
|
||||
PID=$$(cat "$(AUTHOR_PID)"); \
|
||||
|
||||
Reference in New Issue
Block a user