2016-04-22 06:40:14 -04:00
|
|
|
[Unit]
|
|
|
|
Description=consul-template
|
2019-05-06 14:38:54 -04:00
|
|
|
Documentation=https://github.com/hashicorp/consul-template
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
2016-04-22 06:40:14 -04:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment="GOMAXPROCS=2" "PATH=/usr/local/bin:/usr/bin:/bin"
|
|
|
|
ExecStart=/usr/local/bin/consul-template -config /etc/consul-template.d
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2019-05-06 14:38:54 -04:00
|
|
|
KillMode=process
|
|
|
|
KillSignal=SIGTERM
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=42s
|
2016-04-22 06:40:14 -04:00
|
|
|
|
|
|
|
[Install]
|
2016-04-22 08:35:04 -04:00
|
|
|
WantedBy=multi-user.target
|