website/docs: update background command info

This commit is contained in:
Mitchell Hashimoto 2015-07-06 14:07:00 -06:00
parent 80ce9ab1f3
commit cbf70bbd67
1 changed files with 11 additions and 0 deletions

View File

@ -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.