Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
pmcd wants to bind on ipv6 event if it is disabled #102
Comments
|
On 08/02/2016 07:50 AM, test-account-0 wrote:
The code which detects whether ipv6 is enabled is in static const char * This code is reached when calling __pmGetAPIConfig("ipv6"), which is Secondly, setting PMCD_LOCAL in the environment causes pmcd to call __pmServerSetFeature(PM_SERVER_FEATURE_LOCAL) but I can't see where __pmServerHasFeature(PM_SERVER_FEATURE_LOCAL) is Dave |
In this case, the above call is performed (pmcd main.c) solely to ensure the pmcd.feature.local metric can export that setting.
All of the work is done in pmcd main.c so it turns out there's no need to test it using that interface (unlike most of the other feature flags). |
|
On 08/03/2016 06:07 PM, Nathan Scott wrote:
The behaviour of PMCD_LOCAL is a secondary issue. It is correctly adding Dave |
+1
It looks like sysctl uses values from /proc/sys/net/ipv6/conf/*/disable_ipv6;
Yeah, and/or we could make use of the per-interface enabled/disabled cheers. |
|
Dave's fix for this was merged a few weeks back. |
test-account-0 commentedAug 2, 2016
On ubuntu/debian when PMCD_LOCAL=1 is set, when starting pmcd (service pmcd start) a message appears:
ipv6 is disabled through sysctls