Socket
Socket
Sign inDemoInstall

pm2

Package Overview
Dependencies
Maintainers
1
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2 - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

1

lib/API/Extra.js

@@ -38,3 +38,2 @@

CLI.prototype.launchSysMonitoring = function(cb) {
if ((this.pm2_configuration && this.pm2_configuration.sysmonit != 'true') ||

@@ -41,0 +40,0 @@ process.env.TRAVIS ||

5

lib/API/schema.json

@@ -171,3 +171,6 @@ {

"cron_restart": {
"type": "string",
"type": [
"string",
"number"
],
"alias": "cron",

@@ -174,0 +177,0 @@ "docDescription": "A cron pattern to restart your app"

@@ -334,2 +334,7 @@ /**

if (app.cron_restart == 0 || app.cron_restart == '0') {
Common.printOut(cst.PREFIX_MSG + 'disabling cron restart');
return
}
if (app.cron_restart) {

@@ -336,0 +341,0 @@ try {

@@ -399,2 +399,3 @@ /**

God.resetState(proc.pm2_env);
God.deleteCron(id);

@@ -401,0 +402,0 @@ /**

@@ -30,2 +30,3 @@ /**

!pm2_env.cron_restart ||
pm2_env.cron_restart == '0' ||
God.CronJobs.has(God.getCronID(pm2_env.pm_id)))

@@ -32,0 +33,0 @@ return;

{
"name": "pm2",
"preferGlobal": true,
"version": "5.1.1",
"version": "5.1.2",
"engines": {

@@ -6,0 +6,0 @@ "node": ">=10.0.0"

@@ -12,3 +12,3 @@ <div align="center">

<a title="PM2 Downloads">

@@ -59,3 +59,3 @@ <img src="https://img.shields.io/npm/dm/pm2" alt="Downloads per Month"/>

You can install Node.js easily with [NVM](https://riptutorial.com/node-js/example/4578/using-node-version-manager--nvm-) or [ASDF](https://blog.natterstefan.me/how-to-use-multiple-node-version-with-asdf)
You can install Node.js easily with [NVM](https://github.com/nvm-sh/nvm#installing-and-updating) or [ASDF](https://blog.natterstefan.me/how-to-use-multiple-node-version-with-asdf).

@@ -76,3 +76,3 @@ ### Start an application

![Process listing](https://github.com/unitech/pm2/raw/master/pres/pm2-list.png)
![Process listing](https://github.com/Unitech/pm2/raw/master/pres/pm2-ls-v2.png)

@@ -105,3 +105,2 @@ To list all running applications:

[More about Process Management](https://pm2.keymetrics.io/docs/usage/process-management/)

@@ -113,2 +112,4 @@

![Framework supported](https://raw.githubusercontent.com/Unitech/PM2/master/pres/cluster.png)
Starting a Node.js application in cluster mode that will leverage all CPUs available:

@@ -130,6 +131,2 @@

Seamlessly supported by all major Node.js frameworks and any Node.js applications without any code change:
![Framework supported](https://raw.githubusercontent.com/Unitech/PM2/master/pres/cluster-support.png)
[More informations about how PM2 make clustering easy](https://pm2.keymetrics.io/docs/usage/cluster-mode/)

@@ -149,2 +146,15 @@

### Host monitoring speedbar
PM2 allows to monitor your host/server vitals with a monitoring speedbar.
To enable host monitoring:
```bash
$ pm2 set pm2:sysmonit true
$ pm2 update
```
![Framework supported](https://raw.githubusercontent.com/Unitech/PM2/master/pres/vitals.png)
### Terminal Based Monitoring

@@ -181,2 +191,8 @@

To enable log rotation install the following module
```bash
$ pm2 install pm2-logrotate
```
[More about log management](https://pm2.keymetrics.io/docs/usage/log-management/)

@@ -203,15 +219,2 @@

### PM2 Modules
PM2 embeds a simple and powerful module system. Installing a module is straightforward:
```bash
$ pm2 install <module_name>
```
Here are some PM2 compatible modules (standalone Node.js applications managed by PM2):
[**pm2-logrotate**](https://www.npmjs.com/package/pm2-logrotate) automatically rotate logs and limit logs size<br/>
[**pm2-server-monit**](https://www.npmjs.com/package/pm2-server-monit) monitor the current server with more than 20+ metrics and 8 actions<br/>
### Updating PM2

@@ -218,0 +221,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc