0

How to reload after changing a file in /etc/sysctl.d/?

According to /etc/sysctl.d/README.sysctl

After making any changes, please run "service procps force-reload" (or, from a Debian package maintainer script "deb-systemd-invoke restart procps.service").

Is the service command still "state of the art"?

man service

   service - run a System V init script

Now I am unsure. System-V init script ... Wasn't that replaced by systemd long ago?

I use Ubuntu 22.04.

guettli
  • 2,932
  • 12
  • 67
  • 115
  • Why do you think it might not be state of the art? – muru Nov 14 '22 at 01:01
  • I updated the question. `man service` ... System-V init script ... Wasn't that replaced by systemd long ago? – guettli Nov 14 '22 at 08:24
  • Does this answer your question? [Difference between systemctl and service commands](https://askubuntu.com/questions/903354/difference-between-systemctl-and-service-commands) – muru Nov 14 '22 at 08:37
  • Also the quoted README refers to a systemd service (`procps.service` - Sys-V init usually don't have the .service extension) – muru Nov 14 '22 at 08:38

1 Answers1

1

As per this Redhat document:
Execute sysctl -p /etc/sysctl.d/99-custom.conf to apply the changes without rebooting.

George
  • 327
  • 1
  • 9