From 2b0f7566e54c4bf6c02d18df7a2052f6e2f498db Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 11 Jun 2014 11:01:36 -0700 Subject: [PATCH] website: Document the new reload command --- .../source/docs/commands/reload.html.markdown | 29 +++++++++++++++++++ website/source/layouts/docs.erb | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 website/source/docs/commands/reload.html.markdown diff --git a/website/source/docs/commands/reload.html.markdown b/website/source/docs/commands/reload.html.markdown new file mode 100644 index 0000000000..0bd9509912 --- /dev/null +++ b/website/source/docs/commands/reload.html.markdown @@ -0,0 +1,29 @@ +--- +layout: "docs" +page_title: "Commands: Reload" +sidebar_current: "docs-commands-reload" +--- + +# Consul Reload + +Command: `consul reload` + +The leave command triggers a reload of configuration files for the agent. + +The `SIGHUP` signal is usually used to trigger a reload of configurations, +but in some cases it may be more convenient to trigger the CLI instead. + +This command operates the same as the signal, meaning that it will trigger +a reload, but does not wait for the reload to complete. Any errors with the +reload will be present in the agent logs and not in the output of this command. + +## Usage + +Usage: `consul reload` + +The command-line flags are all optional. The list of available flags are: + +* `-rpc-addr` - Address to the RPC server of the agent you want to contact + to send this command. If this isn't specified, the command will contact + "127.0.0.1:8400" which is the default RPC address of a Consul agent. + diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 7af4ba6a01..8ade7749c7 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -81,6 +81,10 @@ > info + + + > + reload