[Unit]
Description=consul agent
Requires=network-online.target
After=network-online.target

[Service]
User=consul
Group=consul
Environment=CONSUL_AGENT_OPTS="-config-dir=/etc/consul.d"
ExecStart=/usr/bin/consul agent $CONSUL_AGENT_OPTS
ExecReload=/usr/bin/consul reload
KillMode=process
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=default.target
