Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save VinodVerma7584/9d22909ec42b447b34aeb735a176509d to your computer and use it in GitHub Desktop.
Save VinodVerma7584/9d22909ec42b447b34aeb735a176509d 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