hashi-stack/consul/consul.service
2020-05-18 21:37:21 -07:00

20 lines
426 B
Desktop File

[Unit]
Description=Consul Service Discovery Agent
Documentation=https://www.consul.io/
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=consul
Group=consul
ExecStart=/usr/local/bin/consul agent \
-config-dir=/etc/consul.d
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGTERM
TimeoutStopSec=5
Restart=on-failure
RestartSec=42s
SyslogIdentifier=consul
[Install]
WantedBy=multi-user.target