Skip to content
New issue

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

init script for consul-template is broken #42

Closed
kostyrev opened this issue Nov 17, 2016 · 4 comments
Closed

init script for consul-template is broken #42

kostyrev opened this issue Nov 17, 2016 · 4 comments

Comments

@kostyrev
Copy link

prog name
wait check
starting service

sh -x /etc/init.d/consul-template start
+ netstat -nptl
+ grep -q '^tcp.*:8400.*LISTEN \+9873\/consul-template'
+ sleep 1
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
consul  6403 consul   15u  IPv4  32419      0t0  TCP 127.0.0.1:8400 (LISTEN)

infinite loop

@duritong
Copy link
Collaborator

Can you test by making grep -q a grep -qi? As tcp seems to be uppercase in your output.

@duritong
Copy link
Collaborator

Or what is actually your netstat -nlpt output?

@kostyrev
Copy link
Author

kostyrev commented Nov 17, 2016

consul listens to 8400 and not consul-template. The latter never listens to any ports.

@duritong
Copy link
Collaborator

you're right! :) thanks for reporting

duritong added a commit that referenced this issue Dec 2, 2016
fix #42 - consul-template does not listen on a port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants