hashi-stack/consul/consul.service

20 lines
426 B
SYSTEMD
Raw Permalink Normal View History

2020-05-19 06:37:21 +02:00
[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