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

should script "</dev/tcp/127.0.0.1/80" work out-of-the-box on linux? #817

Closed
SjonHortensius opened this issue Mar 21, 2018 · 1 comment
Closed

Comments

@SjonHortensius
Copy link
Contributor

Should the script mentioned in doc/samples/keepalived.conf.vrrp.localcheck work out of the box? On my linux machine, trying it results in:

Script </dev/tcp/127.0.0.1/80 cannot be accessed - No such file or directory
Disabling track script chk_http_port since not found/accessible

Some research suggests the linux kernel doesn't provide this, and if it works it is probably implemented in userspace, eg. bash.

Should this work or is there another method to quickly check if a process is listening on a port ?

@SjonHortensius SjonHortensius changed the title doc/samples/keepalived.conf.vrrp.localcheck mentions script "</dev/tcp/127.0.0.1/80" should script "</dev/tcp/127.0.0.1/80" work out-of-the-box on linux? Mar 22, 2018
pqarmitage added a commit to pqarmitage/keepalived that referenced this issue Mar 22, 2018
Issue acassen#817 identified that these types of "scripts" no longer worked.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
@pqarmitage
Copy link
Collaborator

Yes, they should have worked.

Commit 5cd5fff resolves the problem.

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