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

'stop' and 'stopAll' are faulty and leave traces #22

Closed
Morriz opened this issue Jun 23, 2013 · 4 comments
Closed

'stop' and 'stopAll' are faulty and leave traces #22

Morriz opened this issue Jun 23, 2013 · 4 comments

Comments

@Morriz
Copy link

Morriz commented Jun 23, 2013

Hi, when I do a 'pm2 start' on a script, and then a pm2 stop or stopAll, the script isn't killed correctly. Ports are not released in my server script. I have to kill Satan for that, which is easy, but should be unnecesary :P

@Unitech
Copy link
Owner

Unitech commented Jun 24, 2013

Hey,

Once Satan killed, there is no more problems ?
If yes, it's because Satan is a daemon, and when you update pm2 you have to restart it to run the latest daemon version. Else please send me the stack trace :)

Thanks !

@Morriz
Copy link
Author

Morriz commented Jun 24, 2013

Thats right. But why is satan daemonized anyway? I think it doesn't have to be.

@rlidwka
Copy link
Collaborator

rlidwka commented Jun 25, 2013

Ports are not released when the last process is killed, but it looks like a node bug. Try node 0.11.x, they seem to have fixed it.

@Unitech
Copy link
Owner

Unitech commented Jun 26, 2013

@Morriz
One part of Satan wraps God and expose God methods via RPC. It's deamonized to maitain it alive and detached from the terminal in order to monitor launched processes.
After, when you want to communicate with God via the CLI, the CLI will use a part of Satan and will act as an RPC client.

@rlidwka
That's a strange bug, if I get issues about it I will try to find a work around, thanks !

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

3 participants