From 401785a79520b66b3828751016e3ac9e77930801 Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Thu, 20 Feb 2020 19:53:08 +0300 Subject: [PATCH] =?UTF-8?q?"=D0=A0=D0=B0=D0=B7=D0=BE=D0=B2=D1=8B=D0=B9"=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8=D0=BA=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B9=20=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2=D0=B0=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=B0=20=D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a90c1e9..6116235 100644 --- a/index.js +++ b/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(