diff --git a/Makefile b/Makefile index 33a9785..283142d 100755 --- a/Makefile +++ b/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)"); \ diff --git a/posts/posts-list.org b/posts/posts-list.org index 74a1bcb..56269b8 100755 --- a/posts/posts-list.org +++ b/posts/posts-list.org @@ -4,7 +4,7 @@ See the categories: @@html:Categories@@ * Posts: -- [[file:career/career-list.org][Career List]] @@html:07-05-2026 15:23@@ +- [[file:career/career-list.org][Career List]] @@html:07-05-2026 15:31@@ - [[file:posts-list.sync-conflict-20260417-233432-VT6366A.org][Posts List]] @@html:14-04-2026 16:36@@ - [[file:career/ha-dr.org][High Availability, Disaster Recovery and Business Continuity]] @@html:11-03-2026 17:18@@ @@html:learning@@ @@html:notes@@ - [[file:career/javascript.org][Understands the Javascript language]] @@html:11-03-2026 16:52@@ @@html:learning@@ @@html:notes@@ diff --git a/sitemap.org b/sitemap.org index b988940..edd6256 100755 --- a/sitemap.org +++ b/sitemap.org @@ -12,11 +12,11 @@ - [[file:tags/notes.org][Tag: notes]] - [[file:tags/review.org][Tag: review]] - [[file:tags/website.org][Tag: website]] - - [[file:tags/update.org][Tag: update]] - [[file:tags/life.org][Tag: life]] - - [[file:tags/education.org][Tag: education]] + - [[file:tags/update.org][Tag: update]] - [[file:tags/insights.org][Tag: insights]] - [[file:tags/emacs.org][Tag: emacs]] + - [[file:tags/education.org][Tag: education]] - [[file:tags/reading.org][Tag: reading]] - [[file:tags/maths.org][Tag: maths]] - home diff --git a/tests/test_authoring_server.py b/tests/test_authoring_server.py old mode 100644 new mode 100755