-
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
Refactor Startup system (systemd, upstart, launchd, rc.d) #2559
Comments
Published on @next (2.2.0): $ npm install pm2@next -g
$ pm2 update # Get line to be executed as root
$ pm2 startup # Generate startup script
$ pm2 unstartup # Deactivate and remove startup script |
To delete previous startup script (only for upstart) and upgrade to the new one
If you have systemd running, use it instead of upstart |
2.2.1 Released! Changelog: https://github.com/Unitech/pm2/releases/tag/2.2.1 $ npm install pm2 -g |
systemd on CentOS 7, using |
Having read many many issues, it seems like they have given up on supporting this software in the way most people want to use it: running as root and all managed apps either are started as less privileged users, or drop privs themselves after binding privileged resources. I guess someone needs to make a hard fork that supports running as root and only as root to gut any possible confusion. |
looking to it |
Refactor the Startup System to support:
Steps:
Current work is available in development branch:
$ pm2 startup # Then copy / paste the command displayed $ pm2 unstartup
Issues related
Systemd
pm2 startup
does not work on RHEL 7 #2377pm2 startup
on ubuntu 15.04 #1319Upstart
pm2 startup
cannot generate startup scripts for multiple users #889Launchd
Windows
General
The text was updated successfully, but these errors were encountered: