How often should you do Graceful Server Reboot?

Yagami

Member
Under WHM -->Security Center --> Security Advisor. There's an error saying:

=====
Detected processes that are running outdated binary executables.
Reboot the system in the “Graceful Server Reboot” area. Alternatively, SSH into this server and run ‘/bin/needs-restarting’, then manually restart each of the listed processes.
=====

Even after doing Graceful Server Reboot, eventually the above error will appear again. It seems it always happen every time there's a major update to the system. But so far it happens frequently, at least a few times a month. It won't be good if I always do Graceful Server Reboot everytime I see that error since that will always cause a brief downtime.

The question is in your experiences, generally and practically, how often should one do a Graceful Server Reboot with a good balance of uptime and security ?
 
Majority of the updates performed by the OS through Yum very rarely require any kind of server rebooting due to how Linux works with updating packages.

However, every now and then you get several that update specific binaries that don't end the previous old-running binaries.

Ex;
--
nscd
sshd
exim
atd
crond
pure-ftpd
--

The above is some common ones that you'll see in /bin/needs-restarting.

It's not an error; it's more of an advisement to let you know that specific packages require manual intervention. It provides you with what you can do to resolve it.

You can reboot the entire server; or you can run that '/bin/needs-restarting/' value through SSH-commandline and manually restart each process; avoiding a reboot.

The benefit to a VPS is that it's virtualized. A reboot on a VPS shouldn't take no more then a few minutes, if that at all -- compared to physical hardware on a dedicated server that can take at least up to ten minutes, sometimes longer.

The question is in your experiences, generally and practically, how often should one do a Graceful Server Reboot with a good balance of uptime and security ?

It's okay to reboot every now and then, there's no harm in doing so. Most of the time, it's not needed -- but if you're worried about consistent uptime you may want to familiarize yourself with SSH and then run the alternative and just manually restart those specific processes. Majority of the time, if you do reboot a VPS, most users won't be able to tell that it was ever down unless they were consistently refreshing a website.

Optimum VPS hosting from US specialists KnownHost.
 
Top