[arch-general] Sysctl.d configuration ignored (possible pebkac)

Tinu Weber takeya at bluewin.ch
Fri Apr 1 09:21:01 UTC 2016


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`.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20160401/00b19eb0/attachment.asc>


More information about the arch-general mailing list