I using pm2. After I started my app several times, the id increased. I deleted all in pm2, and started again, but the id didn't count from 0 any more. How can I reset it?
PM2 will keep your application forever alive, auto-restarting across crashes and machine restarts.
To check the logs for the different microservices of Lisk Service, use the command pm2 logs PROCESS_NAME , where PROCESS_NAME is the respective PM2 managed process that contains the logs you wish to view.
The solution is to restart pm2, by typing pm2 kill
as said by ItalyPaleAle in the comments.
Per pm2's GitHub:
$ pm2 reset <process> # Reset meta data (restarted time...)
Reference: GitHub issue#1456
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With