yahoo wrote:
>
>
> Il 21/07/25 16:37, Dale ha scritto:
>> Stefan Schmiedl wrote:
>>> ------ Original Message ------
>>>  From "Dale" <rdalek1...@gmail.com <mailto:rdalek1...@gmail.com>>
>>> To gentoo-user@lists.gentoo.org <mailto:gentoo-user@lists.gentoo.org>
>>> Date 21.07.2025 15:49:48
>>> Subject Re: [gentoo-user] sysctl as a directory instead of a file.
>>> Possible wrong name.
>>>
>>> ~ % rc-update show | grep sysctl
>>>                 sysctl | boot
>>>
>>> ~ % grep -n conf /etc/init.d/sysctl
>>> 21:     [ -e /etc/sysctl.conf ] || return 0
>>> 22:     local retval=0 var= comments= conf=
>>> 24:     for conf in /etc/sysctl.conf /etc/sysctl.d/*.conf; do
>>> 25:             if [ -r "$conf" ]; then
>>> 26:                     vebegin "applying $conf"
>>> 32:                     done < "$conf"
>>> 57:     eend $rc "Unable to configure some kernel parameters"
>>>
>>> So (at least here) sysctl is run at boot time and there is a for-loop
>>> in the
>>> openrc-script (line 24) looking at conf files in /etc
>>>
>>>
>>
>>
>> Ahhh.  So the init script is set up to find the files where they are not
>> what may be the default on some other init system.  That works.  I can
>> live with that.  :-D
>>
>
> No, that is not correct. Stefan printed part of the function named
> BSD_sysctl().
> There is another function the same script, named Linux_sysctl(), which
> basically just does 'sysctl --system'. So I'd not say Gentoo is non
> standard, rather it seems to me the BSD function is provided to mimic
> the Linux behavior.
>
> But I already wrote this, looks like it did not get through.
>
> raf
>
>


I was looking at line 24 where it lists two locations for the config
files.  I was thinking that other systems, using systemd or something,
may put the config files somewhere else.  So they may list other
locations if needed. 

Either way, it works now.  I just find it odd that one has to give the
--system option is all. 

Dale

:-)  :-)

Reply via email to