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

Get announce react to network and services coming and going #4

Open
probonopd opened this issue Dec 31, 2014 · 0 comments
Open

Get announce react to network and services coming and going #4

probonopd opened this issue Dec 31, 2014 · 0 comments

Comments

@probonopd
Copy link
Owner

e.g., by watching /proc
or
netstat -lntu
or
http://wiki.openwrt.org/doc/techref/ubus or hotplugorprocd_add_mdns_service` <-- OpenWrt; sounds interesting; undocumented?

The dropbear init script of a forked OpenWrt was extended by
[ "${mdns}" -ne 0 ] && procd_add_mdns "ssh" "tcp" "$Port" "daemon=dropbear"
perhaps this is the route to go? But then all init scripts of services would have to be changed. Where is the documentation for the mdns OpenWrt package?

/etc/services on OpenWrt contains a translation table from ports to services; we could use that too, maybe in conjunction with something like netstat -altuen | grep LISTEN or parsing /proc/net/tcp and /proc/net/udp.

Pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant