On Sat 30 Nov 2024 at 21:20:15 (+0000), Andy Smith wrote: > On Sat, Nov 30, 2024 at 04:03:05PM -0500, Timothy M Butterworth wrote: > > >> > On Sat, Nov 30, 2024 at 3:05 PM Greg Wooledge wrote: > > >> > > To make it permanent, either add a line to /etc/sysctl.conf or add a > > >> > > new file in /etc/sysctl.d/ (check the README.sysctl file in there). > > > It appears that systemd-sysctl is replacing sysctl. There is also a > > replacement for sysctl called Systeroid but it is not currently in Trixie. > > You've spent quite some time exploring blind alleys instead of: > > - Just doing what I said, or; > - Just doing what Greg said in the second part of their first answer, > or; > - Reading any documentation that's actually in Debian such as "man > sysctl.d" > > This is really not as big a deal as you are making it!
To be fair, Greg gave two alternatives, and whether the first one will work, or continue to work, may depend on which versions of procps and systemd is running, and whether /etc/sysctl.conf already exists on the system. Summarising, AIUI, /etc/sysctl.conf, a conffile belonging to procps, was executed via a symlink, /etc/sysctl.d/99-sysctl.conf, belonging to systemd. But systemd is dropping/has dropped that symlink on the assumption that /etc/sysctl.conf, as nowadays supplied by procps, contains only comments. IDK the migration path for any active lines added by a bookworm sysadmin to /etc/sysctl.conf. Presumably they have to be moved to files in /etc/sysctl.d/ for systemd to execute them. Things may have moved on since I read bugs 1076190, 1076352 and 1077187 in the summer. Cheers, David.