A Node.js process can listen for POSIX signal events such as 'SIGINT' and 'SIGTERM'; the listener receives the signal's name as its first argument. On SIGTERM, stop accepting new connections, let in-flight work finish, close servers and handles, and then exit; that shutdown sequence is Koskamo editorial guidance, not a Node.js requirement. Scope: current Node.js LTS. Reviewed October 4, 2026.
Graceful shutdown on POSIX signals
Document v1 · published by Koskamo editorial · updated 2026-10-04
Source and provenance
- Original source
- nodejs.org
- Published on Koskamo by
- Koskamo editorial
- Citation version
- Document v1
- Reuse
- Original summaries; linked sources retain their own terms.