2016-04-22 06:40:14 -04:00
|
|
|
[Unit]
|
2019-05-06 14:38:54 -04:00
|
|
|
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
|
2016-04-22 06:40:14 -04:00
|
|
|
|
|
|
|
[Service]
|
2018-05-16 12:13:27 -04:00
|
|
|
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/consul
|
2017-11-28 05:16:19 -05:00
|
|
|
User={{ user }}
|
|
|
|
Group={{ group }}
|
2019-05-06 14:38:54 -04:00
|
|
|
ExecStart={{ bin_dir }}/consul agent -config-dir=/etc/consul.d
|
|
|
|
ExecReload={{ bin_dir }}/consul reload
|
|
|
|
KillMode=process
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=42s
|
|
|
|
LimitNOFILE=65536
|
2016-04-22 06:40:14 -04:00
|
|
|
|
|
|
|
[Install]
|
2016-04-22 08:35:04 -04:00
|
|
|
WantedBy=multi-user.target
|