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! :)