-
Notifications
You must be signed in to change notification settings - Fork 253
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
background
hangs when ran in within
blocks
#73
Comments
Hi Yusuke, thanks for the feedback. Do you think it'd be possible to change the composition of the stringer method to fix this with the first format? I admit to not having tried the I think for most cases, the 3rd example you posted is correct. In Capistrano the composition of things using the DSL is quite convenient for the most cases, but in advanced cases composing your own command as a string is often easier (although then one sacrifices access to the command map, which is a feature which mostly exists for Capistrano) I would be fine with removing |
Hi guys, nohup: failed to run command `RBENV_ROOT=/home/deployer/.rbenv': No such file or directory I guess the issue is caused by the wrong order of rbenv hooks or something. |
Hi,
Thanks a lot for the great software!
I'm getting more and more excited as I see how flexible SSHKit (and of course Capistrano 3) is :)
I have found that
background
hangs when used withinwithin
blocks.I'm running Capistrano 3.0.1 with SSHKit on Ubuntu 12.04.
With the code below, run
cap test will_hang1
to reproduce the hangs. You can also runcap test wont_hang
to see how to fix those.As far as I know, the problem here is that
nohup
seems to hang when executed aftercd
.We can probably avoid the hangs by changing
background
to emit shell commands likecd the_dir; ( ( nohup the_command &>/dev/null ) & )
.I suspect that the issue is arrising from Net::SSH(ref). So I believe that we can do a work-around on SSHKit side or just document it in Usage Examples.
Regards,
Yusuke
The text was updated successfully, but these errors were encountered: