R
R
Roman Peterson2017-04-23 21:52:31
Node.js
Roman Peterson, 2017-04-23 21:52:31

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

3 answer(s)
R
Roman Peterson, 2017-04-23
@nochnoy

pm2 startup upstart
pm2 start app.js
pm2 save
Helped. I do not know what - upstart or save. Do both :)

A
Alexander Aksentiev, 2017-04-23
@Sanasol

out of the box it doesn't work
like this pm2.keymetrics.io/docs/usage/startup

I
ildgud, 2020-04-14
@ildgud

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 question

Ask a Question

731 491 924 answers to any question