diff --git a/command/agent/rpc_client.go b/command/agent/rpc_client.go index e173ea99a6..9c35229629 100644 --- a/command/agent/rpc_client.go +++ b/command/agent/rpc_client.go @@ -197,6 +197,15 @@ func (c *RPCClient) Stats() (map[string]map[string]string, error) { return resp, err } +// Reload is used to trigger a configuration reload +func (c *RPCClient) Reload() error { + header := requestHeader{ + Command: reloadCommand, + Seq: c.getSeq(), + } + return c.genericRPC(&header, nil, nil) +} + type monitorHandler struct { client *RPCClient closed bool