-
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
Wrong exit code on success #470
Comments
I'm seeing the same issue. We use Rundeck (http://rundeck.org/) for automated deployments and the incorrect exit code causes remote scripts to hang. |
It looks like this may duplicate issue #235. |
Your process isn't launched so pm2 failed deleting it. Normal behavior... @divThis in the https://github.com/Unitech/pm2/blob/master/lib/CLI.js file you can notice that there is a I'll take a look at rundeck though, interesting. A solution might be to check if the process is alive before executing the |
this is not the issue, the process IS launched. pm2 ping; pm2 delete all && echo "OK" || echo "NOK" you launch a command, you get the expected result and the command tell you there was an error |
@divThis you can do that ... #!/bin/sh |
|
... and if you launch this command twice you will get OK and then NOK ;-) |
Yes then the process is deleted, it no longer exists |
No, ping start the pm2 process... can you just do this and paste result ?
|
Maybe that you're looking for |
Just to anticipate a possible troll
The text was updated successfully, but these errors were encountered: