Managing pm2 - wollardj/Mandrill GitHub Wiki
pm2 is the process manager responsible for making sure Mandrill stays alive and healthy. But unlike Nginx, we have much more to gain than simple start|stop|restart commands. Here's a list of come of the commands understood by pm2, and a brief description of each
pm2 start mandrilldstarts the mandrill web server on port 3001 (unless you specified an alternate port)
pm2 stop mandrilldstops the mandrill server
pm2 restart mandrilldstops, then starts the mandrill server
pm2 listgenerates a table of processes being managed, their pid, memory usage snapshot, and their uptime.
pm2 prettylistsame as
list, but the output is formatted json. Use
jlistfor slightly faster output when consuming the data in another script.
pm2 logs mandrilldoutputs the logs recorded from the mandrilld process. Ctrl+c to quit.
pm2 monita live dashboard displaying each managed process and how much memory and CPU that process is consuming. Ctrl+c to quit.