[arch-general] [procps-ng] archlinux default sysctl.conf
Hi,
After reading sysctl-related manpages in systemd, I started to wonder about the logic behind /etc/sysctl.conf shipped with core/procps-ng. If one follows systemd's conventions, this file should be in /usr/lib/sysctl.d and mnemonically called something like "100-archlinux-default.conf". Also note, that systemd currently doesn't document /etc/sysctl.conf at all...
So is there any reason for having an Arch default sysctl.conf in /etc ?
Thanks,
[2013-06-13 19:58:06 -0500] Leonid Isaev:
After reading sysctl-related manpages in systemd, I started to wonder about the logic behind /etc/sysctl.conf shipped with core/procps-ng. If one follows systemd's conventions, this file should be in /usr/lib/sysctl.d and mnemonically called something like "100-archlinux-default.conf". Also note, that systemd currently doesn't document /etc/sysctl.conf at all...
See: /usr/lib/systemd/system/systemd-sysctl.service
This is the legacy location of the kernel parameters configuration file. Eventually I would like to get most things out of it and to /usr/lib/... In the meantime it's fine as it is; if you have any specific issues or want a parameter to be taken out to /usr/lib please open a feature request.
Cheers.
On Fri, 14 Jun 2013 15:13:55 +1000 Gaetan Bisson bisson@archlinux.org wrote:
[2013-06-13 19:58:06 -0500] Leonid Isaev:
After reading sysctl-related manpages in systemd, I started to wonder about the logic behind /etc/sysctl.conf shipped with core/procps-ng. If one follows systemd's conventions, this file should be in /usr/lib/sysctl.d and mnemonically called something like "100-archlinux-default.conf". Also note, that systemd currently doesn't document /etc/sysctl.conf at all...
See: /usr/lib/systemd/system/systemd-sysctl.service
This is the legacy location of the kernel parameters configuration file. Eventually I would like to get most things out of it and to /usr/lib/... In the meantime it's fine as it is; if you have any specific issues or want a parameter to be taken out to /usr/lib please open a feature request.
Thanks for the explanation. Yes, I know that systemd parses the legacy sysctl.conf and I don't have any issues with the default (4 uncommented) sysctl parameters, although I do change most of them :)
But after moving my configuration into /etc/sysctl.d/, I found it odd to keep an empty sysctl.conf to "mask" the defaults (I don't know whether /etc/sysctl.d has a higher preference than sysctl.conf in the current systemd) instead of doing it via symlinks in /etc/sysctl.d/. It seems logical and alignes with systemd documentation to have distro-specific settings in a fixed-name .conf file inside /usr/lib/sysctl.d/...
Cheers.
Best,
participants (2)
-
Gaetan Bisson
-
Leonid Isaev