agent: Add warning if windows and running server mode

This commit is contained in:
Armon Dadgar 2014-04-14 16:49:43 -07:00
parent 064b64e510
commit 9493b9c126
1 changed files with 5 additions and 0 deletions

View File

@ -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
}