Adding Graceful Shutdown to a Crystal HTTP Server
Learn how to add graceful shutdown handling to a Crystal HTTP server so it stops accepting new connections, finishes existing requests, and exits cleanly on SIGINT/SIGTERM.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to add graceful shutdown handling to a Crystal HTTP server so it stops accepting new connections, finishes existing requests, and exits cleanly on SIGINT/SIGTERM.
Stop a Fiber server without dropping active requests. Use signal handling and app.Shutdown with a context timeout to drain in‑flight work, then exit cleanly.
Learn how signal dispositions are inherited during fork() and reset during exec(), and how to use SIG_IGN to preserve process behavior across binary replacements.