title: Start Consul as windows service
body: <p>I'm trying to run consul on windows, my steps:</p>
  
  <ol>
  <li>Download consul.exe</li>
  <li><p>Install nssm like</p>
  
  <p>2.1.<code>iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))</code></p>
  
  <p>2.2.<code>choco install -y nssm</code></p></li>
  <li><p>Create config file for consul:</p>
  
  <p><code>{
      "bootstrap": false,
      "server": true,
      "datacenter": "MyServices",
      "data_dir": "C:\Marchello\Downloads\cons\data",
      "log_level": "INFO"
  }</code></p></li>
  <li><p>Execute nssm command:</p>
  
  <p><code>nssm install Consul C:\Marchello\Downloads\cons\consul.exe agent -config-dir C:\Marchello\Downloads\cons\config --ui-dir C:\Marchello\Downloads\cons\ui</code></p></li>
  <li><p>Got message <code>Service Consul installed successfully</code></p></li>
  <li>Run command <code>nssm start Consul</code>
  In result I'm getting message: <code>Consul: Unexpected status SERVICE_PAUSED in response to START control</code></li>
  </ol>
  
  <p>I'm confused, what I'm doing wrong?</p>