-
Notifications
You must be signed in to change notification settings - Fork 339
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
Running Spring as a background process #330
Comments
👍 |
1 similar comment
+1 |
Hi! when I try to
It crash and result is:
Problem temporary worked around with code like above showed @AhmedAttyah - thanks for save time!
Distinctly there is no compatibility in this place. I have try to debug like this:
The result is:
It is wanted to have notification with recomendations instead of crash and make it configurable somehow (or any another way to work) |
Does anyone still have such a problem with the new version (check author comment at #504). It would be nice to confirm and to close this one of the issues. |
Problem:
When we tried to start spring as background process on CircleCI we got this error:
The reason behind this error according to #231 (comment) is that CircleCI runs a background process with a command equivalent to
nohup bash -c "./daemon &"
and since there is no associated terminalProcess.getsid
is returning nil or 0.Solution:
After some debugging i found that we actually don't need process group ID
pgid
on CircleCI and that Session IDsid
is sufficient to keep spring running in background. Thus, i modifiedself.pgid
method to be:So, I've 2 questions:
1- I'm not sure what can go wrong if we relied on
sid
only for background processes?.2- can we make this configurable ?.
The text was updated successfully, but these errors were encountered: