LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changes to sysctl.conf not working (https://www.linuxquestions.org/questions/linux-newbie-8/changes-to-sysctl-conf-not-working-921544/)

savona 01-01-2012 08:05 PM

Changes to sysctl.conf not working
 
I need to set the following so avast will run on my system:

sysctl -w kernel.shmmax=10000000

It works great, but I would rather not type this at boot everytime so I edited /etc/sysctl.conf and added the following line:

sysctl -w kernel.shmmax = 100000000

When I reboot the system it does not take effect, I still have to go to the command line and enter the command again. Anyone have any ideas to help?

I am running Fedora 16 i686

Thanks

savona 01-01-2012 08:18 PM

Dumb question sorry guys.

For anyone who comes across this thread the sanswer is to NOT add the sysctl command in the line. Just add the following to /etc/sysctl.conf

kernel.shmmax = 100000000

cool.nirbhay@gmail.com 01-03-2012 09:38 PM

[root@server2 ~]# vim /etc/sysctl.conf
kernel.shmmax = 100000000

save and quit.

mathew_p_a 01-11-2012 07:19 AM

Quote:

Originally Posted by cool.nirbhay@gmail.com (Post 4565318)
[root@server2 ~]# vim /etc/sysctl.conf
kernel.shmmax = 100000000

save and quit.

After editing sysctl.conf, you need to give
Code:

sysctl -p
to make it effective without reboot.


All times are GMT -5. The time now is 06:24 AM.