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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct