Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Description=consul-template consul.service vault.service
ExecStart=/usr/local/sbin/consul-template $OPTIONS -config=/etc/consul-template.d

This comment has been minimized.

Copy link

commented Apr 7, 2017

Newer versions of consul-template no longer pass all signals to child processes. SIGINT is passed through though.
adding the following to this systemd will allow for working restarts and stops via systemd



This comment has been minimized.

Copy link

commented Jan 8, 2018

For anyone, who ends up here, KillSignal=SIGINT goes under [Service] section. It can be tested with kill -2 while you watch the service on another tab with journalctl -u consul-template -f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.