PM2 commands

Start

pm2 start ecosystem.core3.config.js

# or

npm start

Status

pm2 list

Stop

pm2 stop ecosystem.core3.config.js

Restart

pm2 restart ecosystem.core3.config.js

Remove all processes from pm2 list

pm2 delete ecosystem.core3.config.js

# or

npm stop

Clean all run-time files with dependencies

make clean

Logging

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.

For example, to see the logs for the Gateway microservice, execute:

pm2 logs lisk-service-gateway