Re: Sysctl.d configuration ignored (possible pebkac)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 1 April 2016 at 11:21, Tinu Weber <takeya@xxxxxxxxxx> wrote:
> On Fri, Apr 01, 2016 at 11:03:33 +0200, Garmine 42 wrote:
>> I have this file:
>> -rw-r--r-- 1 root root 17 Mar 23 02:05 /etc/sysctl.d/10-sysrq.conf
>>
>> With this content:
>> kernel.sysrq = 1
>>
>> Yet any time I log in the `kernel.sysrq = 16` parameter from
>> /usr/lib/sysctl.d/50-default.conf overrides the one I defined above.
>
> According to the sysctl.d(5) manpage, the files are processed in
> lexicographic order, so the variable assignment in `10-...` gets
> overwritten by the variable assignment in `50-...`.
>
> You should probably set a number prefix that is at least 50 (I usually
> go into the 90s with my own files), e.g. `/etc/sysctl.d/90-sysrq.conf`.

Oh, I thought first files in /usr/... are processed (in lexicographic
order) and then files in the appropriate directory inside /etc. I
changed my file to 90.

Thank you! :)



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux