"Разовый" обработчик событий останова сервера приложений
This commit is contained in:
parent
ad719c678f
commit
401785a795
2
index.js
2
index.js
@ -37,7 +37,7 @@ process.on("exit", code => {
|
||||
});
|
||||
|
||||
["SIGINT", "SIGQUIT", "SIGTERM"].forEach(sSig => {
|
||||
process.on(sSig, async () => {
|
||||
process.once(sSig, async () => {
|
||||
await appSrv.logger.warn(`Получен сигнал на останов сервера приложений: ${sSig}`);
|
||||
const terminateTimeout = setTimeout(() => {
|
||||
console.log(
|
||||
|
Loading…
x
Reference in New Issue
Block a user