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:

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


Please enter an answer

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] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct