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

[Service]
EnvironmentFile=-/etc/default/consul-template
Restart=on-failure
ExecStart=/usr/local/bin/consul-template $OPTIONS -config=/etc/consul-template.d/conf/
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target