From 18c8f90b604dac4dba7148edbea4da3fba1b577d Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 15 Mar 2018 17:14:52 +0800 Subject: [PATCH] pm2: Update formatting --- pm2.md | 87 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/pm2.md b/pm2.md index 57e339fd4..972cce71e 100644 --- a/pm2.md +++ b/pm2.md @@ -2,65 +2,66 @@ title: pm2 category: CLI layout: 2017/sheet -updated: 2017-10-31 +authors: { github: "Dr-Dino" } +updated: 2018-03-15 --- ### Fork mode -| Command | Description | -| --- | --- | -| `pm2 start app.js --name my-api` | Start and name a process | +| Command | Description | +| --- | --- | +| `pm2 start app.js --name my-api` | Start and name a process | ### Cluster mode -| Command | Description | -| --- | --- | -| `pm2 start app.js -i 0` | Will start maximum processes with LB depending on available CPUs | +| Command | Description | +| --- | --- | +| `pm2 start app.js -i 0` | Will start maximum processes with LB depending on available CPUs | ### Listing -| Command | Description | -| --- | --- | -| `pm2 list` | Display all processes status | -| `pm2 jlist` | Print process list in raw JSON | -| `pm2 prettylist` | Print process list in beautified JSON | -| --- | --- | -| `pm2 describe 0` | Display all informations about a specific process | -| --- | --- | -| `pm2 monit` | Monitor all processes | +| Command | Description | +| --- | --- | +| `pm2 list` | Display all processes status | +| `pm2 jlist` | Print process list in raw JSON | +| `pm2 prettylist` | Print process list in beautified JSON | +| --- | --- | +| `pm2 describe 0` | Display all informations about a specific process | +| --- | --- | +| `pm2 monit` | Monitor all processes | ### Logs -| Command | Description | -| --- | --- | -| `pm2 logs [--raw]` | Display all processes logs in streaming | -| `pm2 flush` | Empty all log files | -| `pm2 reloadLogs` | Reload all logs | +| Command | Description | +| --- | --- | +| `pm2 logs [--raw]` | Display all processes logs in streaming | +| `pm2 flush` | Empty all log files | +| `pm2 reloadLogs` | Reload all logs | ### Actions -| Command | Description | -| --- | --- | -| `pm2 stop all` | Stop all processes | -| `pm2 restart all` | Restart all processes | -| --- | --- | -| `pm2 reload all` | Will 0s downtime reload (for NETWORKED apps) | -| --- | --- | -| `pm2 stop 0` | Stop specific process id | -| `pm2 restart 0` | Restart specific process id | -| --- | --- | -| `pm2 delete 0` | Will remove process from pm2 list | -| `pm2 delete all` | Will remove all processes from pm2 list | +| Command | Description | +| --- | --- | +| `pm2 stop all` | Stop all processes | +| `pm2 restart all` | Restart all processes | +| --- | --- | +| `pm2 reload all` | Will 0s downtime reload (for NETWORKED apps) | +| --- | --- | +| `pm2 stop 0` | Stop specific process id | +| `pm2 restart 0` | Restart specific process id | +| --- | --- | +| `pm2 delete 0` | Will remove process from pm2 list | +| `pm2 delete all` | Will remove all processes from pm2 list | ### Misc -| Command | Description | -| --- | --- | -| `pm2 reset ` | Reset meta data (restarted time...) | -| `pm2 updatePM2` | Update in memory pm2 | -| `pm2 ping` | Ensure pm2 daemon has been launched | -| `pm2 sendSignal SIGUSR2 my-app` | Send system signal to script | -| --- | --- | -| `pm2 start app.js --no-daemon` | Run pm2 daemon in the foreground if it doesn't exist already | -| `pm2 start app.js --no-vizion` | Skip vizion features (versioning control) | -| `pm2 start app.js --no-autorestart` | Do not automatically restart app | +| Command | Description | +| --- | --- | +| `pm2 reset ` | Reset meta data (restarted time...) | +| `pm2 updatePM2` | Update in memory pm2 | +| `pm2 ping` | Ensure pm2 daemon has been launched | +| `pm2 sendSignal SIGUSR2 my-app` | Send system signal to script | +| --- | --- | +| `pm2 start app.js --no-daemon` | Run pm2 daemon in the foreground if it doesn't exist already | +| `pm2 start app.js --no-vizion` | Skip vizion features (versioning control) | +| `pm2 start app.js --no-autorestart` | Do not automatically restart app |