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

deprecated netstat #40

Open
a36233 opened this issue Mar 2, 2018 · 5 comments
Open

deprecated netstat #40

a36233 opened this issue Mar 2, 2018 · 5 comments

Comments

@a36233
Copy link

a36233 commented Mar 2, 2018

Please change or add support to ss instead of using deprecated tool netstat.

sudo[29679]: piaware : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/netstat --program --tcp --wide --all --numeric
piaware[29674]: failed to run netstat:
piaware[29674]: child process 29679 exited with status 255

@mutability
Copy link
Contributor

What distro are you using that's missing netstat?

@a36233
Copy link
Author

a36233 commented Mar 2, 2018

ArchLinux

@mutability
Copy link
Contributor

Given that I don't build/test for Arch, I'd need a patch for this.

@a36233
Copy link
Author

a36233 commented Mar 2, 2018

Other distributions will follow to drop net-tools and move on with iproute2 for shure, including debian based distros.
E.g: https://lists.ubuntu.com/archives/ubuntu-devel/2017-January/039651.html
For now as a workaround I just disabled verifications using netstat.
Two solutions to solve this:

  • verify if netstat (net-tools) exist or ss (iproute2) and split output verifications based on both.
  • Change detection method to other tool.

@mutability
Copy link
Contributor

I'm not against moving to ss and friends if

  1. you (or someone else) can provide a suitable patch; and
  2. you can validate that it doesn't break older systems

(note that piaware already uses iproute2 for some things)

The short term fix for Arch would be for the Arch build to depend on net-tools.

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