Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLeitwolf112026-09-08 01:35:54 +0300
committerLeitwolf112026-09-08 01:35:54 +0300
commit96699b883c12e079451c9a754da185cf1e26b3fe (patch)
treee40f2f602301e6b74bd9b933d7d8ea435d226324
parent41b6d47bd69e0545420612e1eebe9d01fb77be9e (diff)
downloadprogmaweb-96699b883c12e079451c9a754da185cf1e26b3fe.tar.gz
Treat intentional Next.js shutdown as successful
Teach systemd that the Node runtime's SIGTERM exit status is an expected graceful stop. This prevents routine atomic deployments from leaving a misleading failed result after the replacement service is already healthy.
-rw-r--r--ops/systemd/progmaweb-web.service4
1 files changed, 4 insertions, 0 deletions
diff --git a/ops/systemd/progmaweb-web.service b/ops/systemd/progmaweb-web.service
index 0bcdf5d..acf4690 100644
--- a/ops/systemd/progmaweb-web.service
+++ b/ops/systemd/progmaweb-web.service
@@ -20,6 +20,10 @@ Environment=PROGMAWEB_API_ORIGIN=http://127.0.0.1:5085
Restart=on-failure
RestartSec=5s
TimeoutStopSec=30s
+# Node reports SIGTERM as status 143 during an intentional systemd stop. Treat
+# that graceful shutdown as success so deployments do not leave a false failed
+# result in the service history.
+SuccessExitStatus=143
# Standalone Next.js only reads immutable release files and opens its loopback listener.
NoNewPrivileges=true