How should I automate sysctl.conf settings in a StackScript?
What's the best way to go about configuring sysctl.conf in a StackScript? I guess I could curl -o it while having it hosted somewhere, but surely theres a better way
Any ideas?
1 Reply
Use the sysctl command to add/update/delete the /etc/sysctl.conf entries you want:
https://linuxize.com/post/sysctl-command-in-linux/
I believe /etc/sysctl.conf will be part of the distro.
Alternatively, you can create files in /etc/sysctl.conf.d. When sysctl runs at boot time, this files will be read/executed.
-- sw