-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Bug] "chia start" doesn't exit if invoked via ssh #16396
Comments
If I log into another terminal and |
you can run in tmux, or pass it to backgorund worker chia start harvester & Or use systemd |
True, but when invoking via ssh those are harder. I think it's just an issue of it needing to release its controlling terminal before the parent exits. It's an edge condition, but shouldn't be too hard to fix. |
nohup chia start harvester & |
That doesn't work either, at least not via ssh. (adding
and then it hangs. |
ssh user@chiahost "sh -c 'nohup chia start harvester > /dev/null 2>&1 &'" |
We are leaving this open for a fix, but tbh it is pretty low priority at the moment |
What happened?
From one host, I deploy commands to a farm of chia harvesters. "chia stop" and other commands exit as I'd expect, but "chia start harvester" does not. It completes, reporting success, then just hangs. Eventually I will have to cancel/timeout the session.
At this point, the ssh session just remains open. The daemon and harvester are running, but the shell doesn't exit. I presume this is something to do with not properly daemon-izing the processes, holding a controlling terminal.
Version
2.0.1
What platform are you using?
Linux
What ui mode are you using?
CLI
Relevant log output
No response
The text was updated successfully, but these errors were encountered: