Operating System - Linux
1755711 Members
5397 Online
108837 Solutions
New Discussion юеВ

Re: Process restart after sysctl update

 
SOLVED
Go to solution
Mick Ryan
Advisor

Process restart after sysctl update

All

I appreciate that you don't need to restart the O/S after making an update using the sysctl command. However, is it necessary for any processes to be restarted to pick up the new value?

For example, if I change tcp_syn_retries from 5 to 50, will that affect all processes or would they need to be stopped and started again?

Cheers

Mike
3 REPLIES 3
Steven McCoy
Valued Contributor
Solution

Re: Process restart after sysctl update

Hey Mick,

As far as my experience goes, sysctl updates do not apply to existing sessions. So I believe you need to start a new user session to take advantage of the new settings, requiring process restarts.
Mick Ryan
Advisor

Re: Process restart after sysctl update

Thanks Steve,

Just found out that all the processes will get restarted overnight anyway. However, it's still an interesting question that I could see myself coming back to

Cheers

Mike
Heironimus
Honored Contributor

Re: Process restart after sysctl update

It depends on the setting. Some that affect per-process values will require that processes be restarted. My experience so far has been that a lot of the network-related settings only apply to new connections, but you don't have to restart any processes.