-
Notifications
You must be signed in to change notification settings - Fork 630
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
Orphaned process issue #94
Comments
I can add another case to the pile... my Procfile is
and running foreman start, with or without a hardcoded |
Any chance this issue will get some attention soon? |
Added some detail in #99. |
foreman 0.25.0 is not killing thin process under Ruby 1.9.3-p0. Happens 100% of the time. |
I just released foreman 0.28.0.pre1 that may fix this. Please try it and let me know if it works for you.
|
Thank you, David, now it correctly kills everything. However I noticed something. Here's a foreman run log for my app: https://gist.github.com/258cf4406a9993310322 Some messages printed by processes are only output to console after I press Ctrl-C. With previous versions of foreman they were right out there. |
Try adding this to your app, as high up in the call stack as possible:
|
v0.28 fixed it only partially, previously commands were run through ruby Since v0.28 shell I've fixed this problem in #125 by using ruby |
This should be fixed in the latest foreman. Complex commands can't be used, but if you need something like that you can always create a |
Unfortunately, fixing this issue has broken a common way of running thin: The rack env default value is no longer interpolated and rails crashes trying to load the "${RACK_ENV-development}" environment. |
This is my solution to this problem:
|
Doesn't that result in the same issues this bug was originally addressing? Let's say you have web and queue, with web being started by bin/web.sh as described. If for some reason queue fails to load, foreman will kill both the web and queue pids. The thin instance started by web.sh, being on another pid, ends up orphaned.
|
The key is having |
Whoops, right. I'd still argue that this feels really complicated for something that's not Is there some simple way of defaulting the environment that I'm not aware On Tue, Jan 17, 2012 at 3:06 PM, David Dollar <
|
Agreed that it's a bit more complicated to use. Being able to do I'm certainly open to suggestions to improve the user experience while maintaining correctness. |
If you have Foreman in your Gemfile, you may want to alter the
to prevent the |
Sometimes processes are not shut down correctly. Seems to be related to whether or not there is a
$
in the Procfile entry.The text was updated successfully, but these errors were encountered: