cmndrsp0ck
9/10/2018 - 6:17 AM

/etc/systemd/system/consul-template.service

/etc/systemd/system/consul-template.service

[Unit]
Description=consul-template
Requires=network-online.target
After=network-online.target consul.service vault.service

[Service]
EnvironmentFile=-/etc/sysconfig/consul-template
Restart=on-failure
ExecStart=/usr/local/sbin/consul-template $OPTIONS -config=/etc/consul-template.d

[Install]
WantedBy=multi-user.target