-
Notifications
You must be signed in to change notification settings - Fork 945
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
forever stop <pid> stops ALL processes (behaves like stopall) #659
Comments
Turns out it's worse than I thought. It appears to be doing some kind of default behaviour when it can't find the application to terminate.
It still terminates all forever processes. Edit: disregard anything I said about running as a different user - this behaviour is the same when root runs everything. |
Using "uid" to stop seems to still work. |
Just updated and killed a bunch of live processes |
How could this be missed? Do you not have regression tests? This is a critical bug. |
Very odd indeed, this should not have gotten past tests. @Tjatse this seems to be related to your work around stop, could you look into this? |
Sorry about the confusions, the test suit does not coverage this, try to manually update your local codes like below: procs = forever.findById(target, processes)
|| forever.findByIndex(target, processes)
|| forever.findByUid(target, processes)
|| forever.findByPid(target, processes); Actually, this is an unfinished work, there still have too much PRs from my repository, but have no time to wait for approving. Any way, glad to help solve this, and again, sorry for the bug, guys! |
Hah. Sorry you're not sorry? We'll figure it out. So we should expect more bugs from your other PR? |
Weird tone :( I've figure it out, and always glad to do that. I still do the jobs but not only say Sorry, right? |
No matter what happens with this issue, but someone should immediately pull the release 0.14 from npm (if that's possible) before more people upgrade and kill all their running processes!!!! |
@Tjatse I don't believe @indexzero understands your tone here either. It seems you submitted unfinished work that was finished in a later pull-request. This creates mismatched expectations of what a patch consists of if it was expected to be unfinished. What he is trying to build here is trust. He likes that you are enthusiastic about helping but patience and attention to detail are crucial in a project that has many people who depend on it. A thorough review process is required and when there is not time for that, pull-requests can sit for a while. I understand this is difficult as the contributor as you want to help and see your patches land, but trust needs to be built in the beginning. Things do not always operate at a rapid pace, and that can be for good reason. If trust can be earned through the learning process that happens through open source contribution, things can move faster, but its obviously not at that point yet. @derEremit It has been unpublished |
Somehow this re-surfaced, this time only when pid is zero. |
When pid is zero it terminates all processes, a serious bug, i ended up terminating all processes. |
It appears that the commands |
The problem has not gone away yet. |
I can confirm that I am seeing the same behavior. Executing |
+1 |
This has been fixed in the main codebase (see pull request #756) but there hasn't been a release since then. My current deployment system is using a custom build including this fix which we deploy via:
You can do similar with the current dev branch of forever using something like:
However with both solutions, bear in mind that either of these branches could be horribly broken when compared to a proper release (albeit my branch has been used in production for a while now and I don't intend to make any changes to it). |
+1 Still seeing this,
any updates? |
@stevenmyhre - have you tried with of the git repo's mentioned in my previous comment (Dec 02 2015)? I've been using this successfully for a number of projects. |
No, I'll wait for the official release |
This was fixed in |
Easy to reproduce. Start two node services using forever. Try to stop one using the process ID. Forever stops ALL processes:
The text was updated successfully, but these errors were encountered: