Answer the question
In order to leave comments, you need to log in
Why is the list of pm2 tasks empty after restarting the server?
On the Masterhost VPS (Ubuntu 14) I create a task in pm2:
pm2 start app.js
The application appears in the list, everything is ok.
I reboot the server, I write pm2 list - the list is empty.
pm2 startup I did
What's the matter?
Answer the question
In order to leave comments, you need to log in
pm2 startup upstart
pm2 start app.js
pm2 save
Helped. I do not know what - upstart or save. Do both :)
out of the box it doesn't work
like this pm2.keymetrics.io/docs/usage/startup
You must specify the operating system when autostarting. Example: pm2 startup centos6 Where centos6 is your operating system Choose from the list below ! ---------en----------- Hi. You must write your system. Example : pm2 startup centos6
centos6 - it your system
[ubuntu | ubuntu14 | ubuntu12 | centos | centos6 | arch | oracle | amazon | macos | darwin | freebsd | systemd | systemv | upstart | launchd | rcd | openrc]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question