diff options
| author | Leitwolf11 | 2026-09-08 01:35:54 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-09-08 01:35:54 +0300 |
| commit | 96699b883c12e079451c9a754da185cf1e26b3fe (patch) | |
| tree | e40f2f602301e6b74bd9b933d7d8ea435d226324 | |
| parent | 41b6d47bd69e0545420612e1eebe9d01fb77be9e (diff) | |
| download | progmaweb-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.service | 4 |
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 |