diff --git a/examples/scripts/http_server_graceful_shutdown.ts b/examples/scripts/http_server_graceful_shutdown.ts index 20be19f5d..4a7f31312 100644 --- a/examples/scripts/http_server_graceful_shutdown.ts +++ b/examples/scripts/http_server_graceful_shutdown.ts @@ -50,12 +50,9 @@ const onSigint = () => shutdown("SIGINT"); const onSigterm = () => shutdown("SIGTERM"); // SIGINT is what Ctrl+C sends, SIGTERM is what process managers, docker -// stop, and Kubernetes send first. Note that SIGTERM listeners are not -// supported on Windows. +// stop, and Kubernetes send first. Deno.addSignalListener("SIGINT", onSigint); -if (Deno.build.os !== "windows") { - Deno.addSignalListener("SIGTERM", onSigterm); -} +Deno.addSignalListener("SIGTERM", onSigterm); // Start a slow request, then send SIGTERM while it is still running: //