mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 21:24:11 +00:00
add SIGHUP and SIGTERM to cli shutdown
This commit is contained in:
+3
-3
@@ -15,6 +15,6 @@ async function startOntime() {
|
|||||||
|
|
||||||
startOntime();
|
startOntime();
|
||||||
|
|
||||||
process.on('SIGINT',()=>{
|
process.on(['SIGHUP', 'SIGINT', 'SIGTERM'], () => {
|
||||||
shutdown()
|
shutdown();
|
||||||
})
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user