Ask Your Question

Has /etc/sysctl.conf been deprecated on Fedora 20?

asked 2014-02-15 04:38:53 -0500

Bucic gravatar image

updated 2014-02-15 05:07:35 -0500

NickTux gravatar image

This solution has stopped working for me recently and I've read that Arch ditched the config recently, so this led me to thinking that just maybe Fedora has done it as well for Fedora 20 and later. The mighty duck also told me that Fedora devs have been fiddling with the config, though I don't know whether it's directly related.

Is /etc/sysctl.conf still used?

Yes, I did check the content of my custom /etc/sysctl.conf hasn't been overwritten.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-15 05:04:40 -0500

NickTux gravatar image

In Arch Linux there was an announcement about the deprecation of /etc/sysctl.conf. As you probably already know. Here is the announcement.. Fedora developers didn't make such announcement as far as I know.

Also, if you check the contents of the file /etc/sysctl.conf you will read

# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
# For more information, see sysctl.conf(5) and sysctl.d(5).

and if you give this command

ls -l /etc/sysctl.conf.d/99-system.conf

you will see that is a symlink to /etc/sysctl.conf

/etc/sysctl.d/99-sysctl.conf -> ../sysctl.conf

So I guess it is not deprecated in Fedora 20. It is "up and running" and you can use this file as always, to write values (I use this file for vm.swappiness in my Fedora 20 installation).

As a last check, write a value inside /etc/sysctl.conf and then run

 sudo sysctl -p

without giving a specific file, it will read from /etc/sysctl.conf by default.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-02-15 04:38:53 -0500

Seen: 3,351 times

Last updated: Feb 15 '14