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