initial upload
This commit is contained in:
23
files/consul/configs/consul.service
Normal file
23
files/consul/configs/consul.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[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 -server -ui \
|
||||
-data-dir=/opt/consul \
|
||||
-node=consul-%H \
|
||||
-config-dir=/etc/consul.d
|
||||
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillSignal=SIGINT
|
||||
TimeoutStopSec=5
|
||||
Restart=on-failure
|
||||
SyslogIdentifier=consul
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user