-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 startup
cannot generate startup scripts for multiple users
#889
Comments
Or you install one |
What do you mean by instance? |
Each unix user has it's own |
Even if I wanted to install pm2 per-user that would't make any difference. Each pm2 instance would still try to use the same location for its startup script ( |
Indeed that should be fixed. For the time being , you could easily build your own startup script that calls every pm2 user. |
Aye, at the moment I'm looking into making my puppet manifest copy the file and use sed to change the USER= in the file. |
+1 |
With the PR #1202, |
I had the same problem on ubuntu 14.04. Fixed it by running "sudo pm2 startup -u myusername". Then "sudo pm2 save". And "sudo shutdown -r now" - of course. |
Closing in favor of #2559 To try the new startup system: $ npm install Unitech/pm2#development -g
$ pm2 update $ pm2 startup # Then copy / paste the command displayed
$ pm2 unstartup |
When using
pm2 startup
(at least when usingpm2 startup ubuntu -u x
) the same init.d file is used every time.This means that because
--run-as-user
has been removed you can no longer easily have scripts started by pm2 that run under different users, they all have to run as the same user.The text was updated successfully, but these errors were encountered: