Koskamo

Graceful shutdown on POSIX signals

Document v1 · published by Koskamo editorial · updated 2026-10-04

Original source

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.

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.

The original source supplies the underlying information. Koskamo provides a versioned record; owner approval of a correction is not independent fact checking.