pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

[Feature Request]Reset restart count

Open benhk2005 opened this issue 11 years ago • 7 comments

Sometimes I would forgot whether the restart is done by me or the node itself error cause to restart. It would be great if I can reset the restart count by using the command line without removing the job and add back again.

benhk2005 avatar Aug 22 '15 04:08 benhk2005

$ pm2 reset <process>    # Reset meta data (restarted time...)

source: https://pm2.keymetrics.io/docs/usage/process-management/#reset-restart-count

ftortega avatar Aug 23 '15 20:08 ftortega

The link didn't work, this one does: https://pm2.keymetrics.io/docs/usage/process-management/#reset-restart-count

louisbirla avatar Jun 07 '18 18:06 louisbirla

pm2 reset
# Reset meta data (restarted time...) # <process> = App name

nirmal25990 avatar Jan 24 '19 09:01 nirmal25990

neither of the links work anymore :(

antonytrupe avatar Apr 17 '20 03:04 antonytrupe

https://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/#cheatsheet

orgads avatar Jun 30 '20 08:06 orgads

https://pm2.keymetrics.io/docs/usage/process-management/#reset-restart-count

Unitech avatar Jun 30 '20 10:06 Unitech

https://pm2.keymetrics.io/docs/usage/process-management/#reset-restart-count

pm2 reset all

Reset all 😁 Best option!

ewertonrfd avatar Jun 20 '23 19:06 ewertonrfd