Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.51k stars 2.62k forks source link

When all process are deleted and run pm2 update, old processes get restored #3776

Closed Unitech closed 6 years ago

Unitech commented 6 years ago

https://github.com/Unitech/pm2/blob/29cccd9437e75e36f56d1afb0de3d73a5d033d21/lib/API/Startup.js#L407

wallet77 commented 6 years ago

It's because they were stored in dump file. And after dump file refactoring we don't allow to save an empty file.

If you want to save an empty process list you have to use special command : pm2 cleardump

Unitech commented 6 years ago

Thanks, this should be documented here: https://pm2.io/doc/en/runtime/guide/startup-hook/

wallet77 commented 6 years ago

Oups ... yes we forget this feature in documentation. I will add it.

wallet77 commented 6 years ago

Done : https://github.com/keymetrics/doc-pm2/pull/239