This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
operation-and-maintenance-a…/ansible-playbook-test2/consul-external/etc/systemd/consul-server.service
2020-02-23 18:54:58 +08:00

15 lines
472 B
Desktop File

# Systemd unit file for default tomcat
#
[Unit]
Description=Consul-external
After=network.target
[Service]
EnvironmentFile=/opt/consul-external/etc/systemd/consul.conf
ExecStartPre=/opt/consul-external/script/consul_bind_ip_generate.sh
ExecStart=/opt/consul-external/bin/consul agent -config-dir /opt/consul-external/etc/ -config-file /opt/consul-external/etc/consul/config-server.json -bind ${CONSUL_BIND_ADDRESS} -client 0.0.0.0
[Install]
WantedBy=multi-user.target