From f5e79932490af3eba1c4f42451f9ac87875a021b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 3 May 2018 22:13:18 -0700 Subject: [PATCH] agent: clarify why we Kill still --- agent/agent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/agent.go b/agent/agent.go index 2d431be924..e5c35c94e4 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -1294,7 +1294,8 @@ func (a *Agent) ShutdownAgent() error { // Stop the proxy manager // NOTE(mitchellh): we use Kill for now to kill the processes since - // there isn't a clean way to cleanup the managed proxies. This is coming + // the local state isn't snapshotting meaning the proxy tokens are + // regenerated each time forcing the processes to restart anyways. if err := a.proxyManager.Kill(); err != nil { a.logger.Printf("[WARN] agent: error shutting down proxy manager: %s", err) }