2018-12-17 17:40:09 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Consul Agent
|
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=on-failure
|
|
|
|
Environment=CONSUL_ALLOW_PRIVILEGED_PORTS=true
|
2020-06-03 18:06:58 +00:00
|
|
|
ExecStart=/usr/local/bin/consul agent -config-dir="/etc/consul.d" -recursor="172.31.0.2"
|
2018-12-17 17:40:09 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
KillSignal=SIGTERM
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|