From c307d4449629ef029e1a8f8f6eb7eac15b026b8a Mon Sep 17 00:00:00 2001 From: koplenov Date: Mon, 18 Dec 2023 12:51:38 +0300 Subject: [PATCH 1/2] Added 'pm2 resurrect' in warning Adding information on how to restore the process list I get a lot of use :> --- lib/API/UX/pm2-ls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/API/UX/pm2-ls.js b/lib/API/UX/pm2-ls.js index b5b125fb6..4c5086ac4 100644 --- a/lib/API/UX/pm2-ls.js +++ b/lib/API/UX/pm2-ls.js @@ -24,10 +24,10 @@ function checkIfProcessAreDumped(list) { .map(proc => proc.name) var diff = apps_dumped.filter(a => !apps_running.includes(a)) if (diff.length > 0) { - Common.warn(`Current process list is not synchronized with saved list. App ${chalk.bold(diff.join(' '))} differs. Type 'pm2 save' to synchronize.`) + Common.warn(`Current process list is not synchronized with saved list. App ${chalk.bold(diff.join(' '))} differs. Type 'pm2 save' to synchronize or 'pm2 resurrect' for restore processes..`) } else if (apps_dumped.length != apps_running.length) { - Common.warn(`Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize.`) + Common.warn(`Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize or 'pm2 resurrect' for restore processes.`) } } catch(e) { } From ea27739d1e65d39ad3b453384cd2dde926365193 Mon Sep 17 00:00:00 2001 From: koplenov Date: Mon, 18 Dec 2023 12:54:29 +0300 Subject: [PATCH 2/2] less dots! 0_o --- lib/API/UX/pm2-ls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/API/UX/pm2-ls.js b/lib/API/UX/pm2-ls.js index 4c5086ac4..93ef7bb9d 100644 --- a/lib/API/UX/pm2-ls.js +++ b/lib/API/UX/pm2-ls.js @@ -24,7 +24,7 @@ function checkIfProcessAreDumped(list) { .map(proc => proc.name) var diff = apps_dumped.filter(a => !apps_running.includes(a)) if (diff.length > 0) { - Common.warn(`Current process list is not synchronized with saved list. App ${chalk.bold(diff.join(' '))} differs. Type 'pm2 save' to synchronize or 'pm2 resurrect' for restore processes..`) + Common.warn(`Current process list is not synchronized with saved list. App ${chalk.bold(diff.join(' '))} differs. Type 'pm2 save' to synchronize or 'pm2 resurrect' for restore processes.`) } else if (apps_dumped.length != apps_running.length) { Common.warn(`Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize or 'pm2 resurrect' for restore processes.`)