In #2191 I accedentally broke SCADA by not populating the agent's version
information into the config structure. This adds it back, and makes the
distinction between the raw parts we send to APIs and the human form of
the version that we display.
Make Consul treat SIGTERM like it does SIGINT when running commands.
This is especially important when running Consul as a daemon, since
Unix process managers send SIGTERM to restart or terminate a process.
This change is untested on Windows.
Fixeshashicorp/consul#797
After e6b6f18172 if consul was built
with just running "go build" the GitDescribe would be empty and consul
version would be empty.
This change alters the behaviour so that if consul is build without
proper ldflags the version will be postfixed with "dev" prerelease to
indicate that it is self compiled in a wrong way.
Should someone have a bug in such a binary at least devs should easily
see from the version number that binary has not been created by
recommended means.