Merge pull request #2090 from evan2645/document-consul-lock-shell-execution

Document `consul lock` shell execution
This commit is contained in:
James Phillips 2016-06-03 22:31:31 -07:00
commit 7816158106
1 changed files with 8 additions and 0 deletions

View File

@ -74,3 +74,11 @@ The list of available flags are:
* `-verbose` - Enables verbose output.
## SHELL
Consul lock launches its children in a shell. By default, Consul will use the shell
defined in the environment variable `SHELL`. If `SHELL` is not defined, it will
default to `/bin/sh`. It should be noted that not all shells terminate child
processes when they receive `SIGTERM`. Under Ubuntu, `/bin/sh` is linked to `dash`,
which does **not** terminate its children. In order to ensure that child processes
are killed when the lock is lost, be sure to set the `SHELL` environment variable
appropriately.