Catching SIGTERM vs catching SIGINT
问题 In Node.js servers, is there any difference between catching SIGTERM vs catching SIGINT? I thought processes were not supposed to be able to prevent shutdown upon a SIGINT? process.once('SIGINT', function (code) { console.log('SIGINT received...'); server.close(); }); // vs. process.once('SIGTERM', function (code) { console.log('SIGTERM received...'); server.close(); }); Am I able to trap both signals and prevent exit? My experimentation suggests the answer is yes, but from what I have read,