2c7ab566e1
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
19 lines
411 B
Text
19 lines
411 B
Text
[Unit]
|
|
Description=Consul-Template Daemon
|
|
Wants=basic.target
|
|
After=basic.target network.target
|
|
|
|
[Service]
|
|
User=root
|
|
Group=root
|
|
Environment="CONSUL_TEMPLATE_LOG=info"
|
|
Environment="GOMAXPROCS=2"
|
|
ExecStart=/usr/local/bin/consul-template -config /etc/consul-template/conf.d
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
LimitNOFILE=4096
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|