1 Apr
2016
1 Apr
'16
9:21 a.m.
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`.