2014-06-11 18:01:36 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Commands: Reload"
|
|
|
|
sidebar_current: "docs-commands-reload"
|
2014-10-19 23:40:10 +00:00
|
|
|
description: |-
|
|
|
|
The `reload` command triggers a reload of configuration files for the agent.
|
2014-06-11 18:01:36 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Consul Reload
|
|
|
|
|
|
|
|
Command: `consul reload`
|
|
|
|
|
2014-10-19 23:40:10 +00:00
|
|
|
The `reload` command triggers a reload of configuration files for the agent.
|
2014-06-11 18:01:36 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2014-11-26 03:03:14 +00:00
|
|
|
**NOTE**
|
|
|
|
|
|
|
|
Not all configuration options are reloadable. See the
|
|
|
|
[Reloadable Configuration](/docs/agent/options.html#reloadable-configuration)
|
|
|
|
section on the agent options page for details on which options are supported.
|
|
|
|
|
2014-06-11 18:01:36 +00:00
|
|
|
## 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.
|
|
|
|
|