[arch-projects] [PATCH] initscripts: load of sysctl files at startup

Seblu seblu at seblu.net
Tue Aug 30 09:36:41 EDT 2011


On Mon, Aug 29, 2011 at 8:10 PM, Tom Gundersen <teg at jklm.no> wrote:
> On Mon, Aug 29, 2011 at 7:26 PM, Seblu <seblu at seblu.net> wrote:
>> On Mon, Aug 29, 2011 at 12:17 AM, Tom Gundersen <teg at jklm.no> wrote:
>>> On Sun, Aug 28, 2011 at 11:51 PM, Dave Reisner <d at falconindy.com> wrote:
>>>> On Sun, Aug 28, 2011 at 11:44:17PM +0200, Earendil wrote:
>>>>> I have also added the capability to stip th sysctl.conf files in many
>>>>> files in the sysctl.d directory.
>>>>> This idea was inspired by Debian architecture.
>>>>
>>>> Sure, systemd uses this as well. Do we have any cases where distributing
>>>> a sysctl file with a package is needed? I'm really not sure this is
>>>> something that's wanted/needed in Arch.
>>>
>>> I agree with Dave, if we are going to support this there should be at
>>> least one user of it. Are there any packages that either already ship
>>> with their own sysctl file, or that would benefit from doing it?
>> As /etc/udev/rules.d, sysctl.d can be reserved for users.
>>
>> It's a very pratical way of setting system config. Make it a default,
>> is a good advice for users.
>> It will maybe also help packager which want add some systcl param.
>> (chicken or the egg?)
>
> I'm all for it if we have users (packages). I.e. if there are packages
> that could use this, I'd be happy to merge a patch. A candidate would
> be any package that instructs the user to add something to
> sysctl.conf. I have not seen this, but maybe it exists.
As lukas point it, we have currently one candidate.

I don't understand something, even if we doesn't have any package
using /etc/sysctl.d
is an handy way of adding config to sysctl for *real* users.

>
> If we start shipping files in /usr/lib/sysctl.d/, then the counerpart
> in /etc makes sense for user files and as an override mechanism.
> However, if there are no shipped files, then the user might as well
> keep all the config in /etc/sysctl.conf.
>
You want to remove /etc/sysctl.conf or keep it? If i understand right
systemd suggestion, there is no /etc/sysctl.conf. In this case we have
one more cantidate.

$ pacman -Qo /etc/sysctl.conf
/etc/sysctl.conf is owned by procps 3.2.8-4


Regards,

-- 
Sébastien Luttringer
www.seblu.net


More information about the arch-projects mailing list