Skip to content

Instantly share code, notes, and snippets.

@takuan-osho
Forked from yunano/consul-template.service
Created October 21, 2017 10:08
Show Gist options
  • Save takuan-osho/32b1a11e7ee8096718684408e8260ccd to your computer and use it in GitHub Desktop.
Save takuan-osho/32b1a11e7ee8096718684408e8260ccd to your computer and use it in GitHub Desktop.
/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment