Pm2: Why is min-uptime not available at the CLI

Created on 12 May 2017  路  2Comments  路  Source: Unitech/pm2

I noticed that the max-restarts is available on the CLI, but not min-uptime, without which max-restarts is irrelevant for a process that takes a few seconds to start up.

PM2 version: 2.4.6
Node version: v6.9.2
Windows

All 2 comments

I advise you to use a process file for advanced use of options, we don't want to allow all options for the CLI because it will make it too complex.
The CLI options are only intended if you want to setup basic options.

Shouldn't we let the user decide how complicated they're willing to make their commands? It seems silly to allow MOST options on the command line but not a select few.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

morfies picture morfies  路  3Comments

chaos-git picture chaos-git  路  3Comments

alexpts picture alexpts  路  3Comments

liujb picture liujb  路  3Comments

phra picture phra  路  3Comments