[Unit]
Description=consul-template TLS Certificate
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
User={{ consul_template.user }}
Group={{ consul_template.group }}
ExecStart={{ consul_template.install_dir }}/consul-template \
  -config={{ consul_template.config_dir }}/config.hcl
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target
