PM2's startup
service script is triggered before Vagrant mounts the local directories so none of the scripts it's tasked with starting can be found.
Use Upstart's events to trigger pm2 resurrect
once local directories have been mounted.
Notice: At the time of writing, Vagrant's vagrant-mounted
event is not being triggered on Ubuntu < 15.04. To fix this, you should add the following workaround:
Create a file called /etc/init/workaround-vagrant-bug-6074.conf
with the following content: