openrc's /etc/init.d/sysctl has a line which reads for conf in /etc/sysctl.d/*.conf /etc/sysctl.conf; do and then proceeds to sysctl -q -e -p "${conf}". However, baselayout-2 does not install this directory. Its not a problem, but it would be an enhancement to have it there with are README that explains how it works. This is currently being done in Debian. There README.sysctl reads (in part): <quote> Files found under the /etc/sysctl.d directory that end with .conf are parsed within sysctl(8) at boot time. If you want to set kernel variables you can either edit /etc/sysctl.conf or make a new file. The filename isn't important, but don't make it a package name as it may clash with something the package builder needs later. It must end with .conf though. My personal preference would be for local system settings to go into /etc/sysctl.d/local.conf but as long as you follow the rules for the names of the file, anything will work. See sysctl.conf(8) man page for details of the format. </quote> I have packages that would make use of this directory with droping sysctl key = value pairs rather than trying to replace sysctl.conf in a config protected fashion. Reproducible: Always
(In reply to comment #0) > I have packages that would make use of this directory with droping sysctl key = > value pairs That should read ".. that would make use of this directory by dropping conf files in there with key = value pairs ... "
It looks like openrc should install this directory since it is our sysctl script and not /sbin/sysctl which parses the files in it.
Anthony, can you please attach a copy of Debian's README for this directory? I would like to take a look at it, and I'll probably use something similar.
Created attachment 298369 [details] Debian's readme @ /etc/sysctl.d/README.sysclt
InCVS.