mirror of https://github.com/status-im/consul.git
23 lines
511 B
SYSTEMD
23 lines
511 B
SYSTEMD
[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]
|
|
Type=notify
|
|
EnvironmentFile=-/etc/consul.d/consul.env
|
|
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
|
|
|