[Unit] Description="HashiCorp Consul - A service mesh solution" Documentation=https://www.consul.io/ Requires=network-online.target After=network-online.target ConditionFileNotEmpty=/etc/consul.d/config.json [Service] EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/consul User={{ user }} Group={{ group }} ExecStart={{ bin_dir }}/consul agent -config-dir=/etc/consul.d ExecReload={{ bin_dir }}/consul reload KillMode=process Restart=on-failure RestartSec=42s LimitNOFILE=65536 [Install] WantedBy=multi-user.target