From cbf70bbd67d433cf2f69e85504b54918f43b68f8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 6 Jul 2015 14:07:00 -0600 Subject: [PATCH] website/docs: update background command info --- website/docs/source/v2/cli/ssh.html.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/website/docs/source/v2/cli/ssh.html.md b/website/docs/source/v2/cli/ssh.html.md index f910b324b..0950db0a9 100644 --- a/website/docs/source/v2/cli/ssh.html.md +++ b/website/docs/source/v2/cli/ssh.html.md @@ -21,3 +21,14 @@ any arbitrary commands to do things such as reverse tunneling down into the * `-p` or `--plain` - This does an SSH without authentication, leaving authentication up to the user. + +## Background Execution + +If the command you specify runs in the background (such as appending a `&` to +a shell command), it will be terminated almost immediately. This is because +when Vagrant executes the command, it executes it within the context of a +shell, and when the shell exits, all of the child processes also exit. + +To avoid this, you'll need to detach the process from the shell. Please +Google to learn how to do this for your shell. One method of doing this is +the `nohup` command.