Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PM2 doesn't start after server reboot #10

Open
abc245 opened this issue Nov 30, 2017 · 5 comments
Open

PM2 doesn't start after server reboot #10

abc245 opened this issue Nov 30, 2017 · 5 comments

Comments

@abc245
Copy link

abc245 commented Nov 30, 2017

Hi,

I have a weird problem, if I restart the remote server and do not log in after wards to it the pm2 doesn't start automatically, however if after restart I log in to the server the pm2 starts as expected.

What can be the issue? I'm using Windows Server 2012 R2.

@jianbingfang
Copy link

+1

@nygma2004
Copy link

Yes same here. I am using it on a Win10 SBC. PM2 only seem to start when I log in with a user.

@nygma2004
Copy link

Everyone who is looking this issue, I have found this article: https://blog.cloudboost.io/nodejs-pm2-startup-on-windows-db0906328d75
I have implemented Solution 2 (installing pm2-windows-service), and it works. Now I have a system service and Node Red is being started on Windows startup.

@dluk
Copy link

dluk commented Dec 12, 2018

I used an easier solution - created a windows scheduled task which runs "pm2 resurrect" on start up as SYSTEM user. Works without anyone having to log in.

@uzbeki
Copy link

uzbeki commented Mar 25, 2021

I used an easier solution - created a windows scheduled task which runs "pm2 resurrect" on start up as SYSTEM user. Works without anyone having to log in.

did you create a .bat file that only contains "pm2 resurrect" in it and set it to run on startup from Win Task Scheduler? Is that what you mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants