2016-04-22 06:40:14 -04:00
|
|
|
[Unit]
|
|
|
|
Description=consul
|
|
|
|
Wants=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2018-05-16 12:13:27 -04:00
|
|
|
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/consul
|
2019-01-21 20:09:01 -05:00
|
|
|
ExecStart=/opt/consul/bin/consul agent -config-dir=/etc/consul.d
|
2016-04-22 06:40:14 -04:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
KillSignal=TERM
|
2017-11-28 05:16:19 -05:00
|
|
|
User={{ user }}
|
|
|
|
Group={{ group }}
|
2016-04-22 06:40:14 -04:00
|
|
|
|
|
|
|
[Install]
|
2016-04-22 08:35:04 -04:00
|
|
|
WantedBy=multi-user.target
|