[systemd-devel] Q: Change a kernel setting

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Fri Jul 29 06:45:51 UTC 2022


Hi!

I wonder: What is the recommended way to do this with systemd?:
---
Add the following command to a script executed on system boot, such as /etc/init.d/boot.local:

# echo 0 > /sys/kernel/mm/ksm/run
---

Do I have to write a unit for it, or is there some generic mechanism already?

Regards,
Ulrich





More information about the systemd-devel mailing list