Skip to content

Commit 494cfa7

Browse files
committed
add SIGTERM handler
1 parent 0e30e07 commit 494cfa7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/proxy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ async function run(
6868
};
6969

7070
process.on("SIGINT", shutdown);
71+
process.on("SIGTERM", shutdown); // Docker / systemd
7172

7273
return server;
7374
}

0 commit comments

Comments
 (0)