2021-10-12 17:00:35 +00:00
|
|
|
[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/consul.hcl
|
|
|
|
|
|
|
|
[Service]
|
2022-01-24 20:13:14 +00:00
|
|
|
EnvironmentFile=-/etc/consul.d/consul.env
|
2021-10-12 17:00:35 +00:00
|
|
|
User=consul
|
|
|
|
Group=consul
|
|
|
|
ExecStart=/usr/bin/consul agent -config-dir=/etc/consul.d/
|
|
|
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
|
|
|
KillMode=process
|
|
|
|
KillSignal=SIGTERM
|
|
|
|
Restart=on-failure
|
|
|
|
LimitNOFILE=65536
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|