We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The cookbook runs successfully, but the service enters failed state:
$ sudo service consul-template status Redirecting to /bin/systemctl status consul-template.service ● consul-template.service - Consul Template Daemon Loaded: loaded (/etc/systemd/system/consul-template.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (Result: exit-code) since Mon 2018-02-19 09:14:52 UTC; 35s ago Process: 26129 ExecStart=/usr/local/bin/consul-template -config /etc/consul-template.d (code=exited, status=14) Main PID: 26129 (code=exited, status=14)
In case I manually run the comand /usr/local/bin/consul-template -config /etc/consul-template.d or service consul-template restart it perfectly works.
/usr/local/bin/consul-template -config /etc/consul-template.d
service consul-template restart
OS Centos: 7.3.1611 The cookbook version: 0.12.0 Chef-client: 12.20.3 consul-template: 0.19.4
$ sudo cat /etc/systemd/system/consul-template.service [Unit] Description=Consul Template Daemon Wants=basic.target After=basic.target network.target [Service] User=consul-template Group=consul-template ExecStart=/usr/local/bin/consul-template -config /etc/consul-template.d ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure RestartSec=42s [Install] WantedBy=multi-user.target $ sudo cat /etc/consul-template.d/default.json { } $ sudo cat /etc/consul-template.d/haproxy template { source = "/etc/haproxy/haproxy.cfg.ctmpl" destination = "/etc/haproxy/haproxy.cfg" command = "/bin/bash -c 'systemctl restart haproxy || true'" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The cookbook runs successfully, but the service enters failed state:
In case I manually run the comand
/usr/local/bin/consul-template -config /etc/consul-template.d
orservice consul-template restart
it perfectly works.OS Centos: 7.3.1611
The cookbook version: 0.12.0
Chef-client: 12.20.3
consul-template: 0.19.4
The text was updated successfully, but these errors were encountered: