diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -195,4 +195,10 @@ async function startApplication () { | |||
195 | logger.info('Server listening on %s:%d', hostname, port) | 195 | logger.info('Server listening on %s:%d', hostname, port) |
196 | logger.info('Web server: %s', CONFIG.WEBSERVER.URL) | 196 | logger.info('Web server: %s', CONFIG.WEBSERVER.URL) |
197 | }) | 197 | }) |
198 | |||
199 | process.on('exit', () => { | ||
200 | JobQueue.Instance.terminate() | ||
201 | }) | ||
202 | |||
203 | process.on('SIGINT', () => process.exit(0)) | ||
198 | } | 204 | } |