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

Feature request | pm2 startup for eval #2980

Closed
canstudios-louisem opened this issue Jun 28, 2017 · 3 comments
Closed

Feature request | pm2 startup for eval #2980

canstudios-louisem opened this issue Jun 28, 2017 · 3 comments

Comments

@canstudios-louisem
Copy link

Currently to run pm2 startup via a shell script we use eval $(pm2 startup | grep "startup").

It would be great if pm2 startup would output just the command and not the instructions via in argument, i.e., pm2 startup --eval this would allow us to not rely on a grep that could break if you change the output.

Unitech added a commit that referenced this issue Jul 2, 2017
@Unitech
Copy link
Owner

Unitech commented Jul 2, 2017

Fixed, to try it:

$ npm install Unitech/pm2#development -g
$ PM2_SILENT=true pm2 startup

@Unitech
Copy link
Owner

Unitech commented Jul 20, 2017

Published on PM2 2.6.0:

$ npm install pm2@latest -g
$ pm2 update

@Unitech Unitech closed this as completed Jul 20, 2017
inerc pushed a commit to inerc/pm2 that referenced this issue Feb 11, 2020
@SquirrelCorporation
Copy link

SquirrelCorporation commented Feb 23, 2024

Sorry to re-open this, but is this fix still valid? Doing PM2_SILENT=true pm2 startup output nothing
@Unitech

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

No branches or pull requests

3 participants