feature: add SIGINT handling
This commit is contained in:
parent
fe706b858a
commit
62761723d4
1 changed files with 5 additions and 0 deletions
|
@ -50,4 +50,9 @@ const server = new SERVER({
|
|||
logging: settings.logs
|
||||
});
|
||||
|
||||
Deno.addSignalListener('SIGINT', async () => {
|
||||
await server.stop();
|
||||
Deno.exit();
|
||||
});
|
||||
|
||||
await server.start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue