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
|
2016-04-22 06:40:14 -04:00
|
|
|
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d
|
|
|
|
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
|