Formula to install PM2 and setup apps via pillar.
Note
See the full Salt Formulas installation and usage instructions.
Runs the states to install PM2, bootstrap startup script, start apps and save processes.
Install PM2.
Create script to auto ressurect PM2 apps at startup time.
Starts PM2 apps defined in the pillar.
Deletes PM2 apps defined as 'absent' in the pillar.
Save PM2 current process list. Uses startup script 'home_path' if defined.