We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d00aca6 commit 2549a72Copy full SHA for 2549a72
impress.js
@@ -198,7 +198,7 @@ const loadApplications = async () => {
198
}
199
};
200
201
-const stop = async (code = 0) => {
+const stop = async (signal = 'SIGINT', code = 0) => {
202
const portsClosed = new Promise((resolve) => {
203
impress.console.info('Graceful shutdown in worker 0');
204
const timeout = setTimeout(() => {
@@ -214,7 +214,7 @@ const stop = async (code = 0) => {
214
broadcast(app, { name: 'stop' });
215
216
await portsClosed;
217
- exit('Application server stopped', code);
+ exit(`Application server stopped by ${signal}`, code);
218
219
220
process.removeAllListeners('warning');
0 commit comments