PM2 commands

To manage a Lisk Service instance that is connected to a different network than the Lisk Mainnet, replace ecosystem.mainnet.config.js with ecosystem.testnet.config.js or ecosystem.custom.config.js.

Start

pm2 start ecosystem.mainnet.config.js

# or

npm start

Status

pm2 list

Stop

pm2 stop ecosystem.mainnet.config.js

Restart

pm2 restart ecosystem.mainnet.config.js

Remove all processes from pm2 list

pm2 delete ecosystem.mainnet.config.js

# or

npm stop

Clean all run-time files with dependencies

make clean