Skip to content

Managing Services with PM2

LT Auditor MP ‘s web application can also be managed directly using PM2. The ecosystem configuration file is located at:

/opt/bluelance/web/ecosystem.config.js

Start the application:

cd /opt/bluelance/web

npx pm2 start ecosystem.config.js

Check status:

npx pm2 list

npx pm2 status

npx pm2 logs

Restart the application:

npx pm2 restart ecosystem.config.js

# or restart by app name

npx pm2 restart lta-web

Stop the application:

npx pm2 stop ecosystem.config.js

# or stop by app name

npx pm2 stop lta-web

Save the PM2 process list:

npx pm2 save

Always save the process list after making changes to ensure services restart automatically on system reboot.

Monitor resource usage:

npx pm2 monit