From bb33a47baba1e422ffb539bc1602056dd0be3fbe Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 14 Apr 2014 16:49:43 -0700 Subject: [PATCH] agent: Add warning if windows and running server mode --- command/agent/command.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/command/agent/command.go b/command/agent/command.go index b80c0df054..a8d1ef0456 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -111,6 +111,11 @@ func (c *Command) readConfig() *Config { c.Ui.Error("WARNING: Bootstrap mode enabled! Do not enable unless necessary") } + // Warn if using windows as a server + if config.Server && runtime.GOOS == "windows" { + c.Ui.Error("WARNING: Windows is not recommended as a Consul server. Do not use in production.") + } + return config }