does /etc/sysctl.d/ really obeyed and does really override /etc/sysctl.conf

Dave Jones davej at redhat.com
Fri Mar 16 20:16:14 UTC 2012


On Fri, Mar 16, 2012 at 09:42:50PM +0200, Muayyad AlSadi wrote:
 > > What happens if two packages want to set a sysctl to different values ?
 > 
 > that's why they are prefixed with numbers, the higher number will take
 > effect
 > eg. 99-foobar.conf
 > 
 > sometimes we have conventions for number ranges like this
 > 
 > http://fedoraproject.org/wiki/Fontconfig_packaging_tips#Choosing_a_ruleset_numeral_prefix
 > 
 > 50 User overrides
 > 51 Local system overrides
 > ...

But for a system wide change, that's insufficient.

If 00-foo sets something to value A, and 99-bar sets it to B,
and B < A, foo may not function correctly.

This isn't an ordering problem, it's an exclusivity problem, because
sysctls are system-wide, not per-package.

	Dave



More information about the devel mailing list