mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 15:13:20 +02:00
21 lines
574 B
Plaintext
21 lines
574 B
Plaintext
![]() |
[Unit]
|
||
|
Description="HashiCorp Consul - A service mesh solution"
|
||
|
Documentation=https://www.consul.io/
|
||
|
Requires=network-online.target
|
||
|
After=network-online.target
|
||
|
ConditionFileNotEmpty={{ consul_root_dir }}/etc/consul.json
|
||
|
|
||
|
[Service]
|
||
|
EnvironmentFile=-{{ consul_root_dir }}/etc/consul.env
|
||
|
User={{ consul_user }}
|
||
|
Group={{ consul_user }}
|
||
|
ExecStart={{ consul_root_dir }}/bin/consul agent -config-dir={{ consul_root_dir }}/etc/
|
||
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
||
|
KillMode=process
|
||
|
KillSignal=SIGTERM
|
||
|
Restart=on-failure
|
||
|
LimitNOFILE=65536
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|