Pm2: is there any option to set the restart interval?

Created on 16 Jul 2015  路  4Comments  路  Source: Unitech/pm2

I want let my process not to restart inmediately, is there any option or solution in pm2 to let me do this?
I know about min_uptime and max_restart options's meaning. can you help me? @jshkurti

Most helpful comment

Here we go.
pm2 start app.js --restart-delay 4000 (delay is in milliseconds)
or in JSON declaration:

  "restart_delay" : "4000"

Avaible on #development for now, soon to be published :)

https://github.com/Unitech/PM2/commit/12261c6b4ae17e69bc0721c9a68167731b26ba4b

All 4 comments

This feature has been requested but not yet implemented. https://github.com/Unitech/PM2/issues/498

Thx @carnesen closing this as duplicate.

Here we go.
pm2 start app.js --restart-delay 4000 (delay is in milliseconds)
or in JSON declaration:

  "restart_delay" : "4000"

Avaible on #development for now, soon to be published :)

https://github.com/Unitech/PM2/commit/12261c6b4ae17e69bc0721c9a68167731b26ba4b

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FujiHaruka picture FujiHaruka  路  3Comments

rajendar38 picture rajendar38  路  3Comments

webchaz picture webchaz  路  3Comments

mario-mui picture mario-mui  路  3Comments

ghost picture ghost  路  3Comments