News for hackers. Stuff that matters.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by hyperknot on Friday January 22, 2016 @07:11AM (#10952246)
You only need to restart when there is a kernel update, and the frequency of kernel updates depend heavily on the distro used. Debian stable, for example, although using ancient versions of the packages, is a great OS for such a use case, as kernel upgrades are really infrequent. Have a look at the changelog frequency of Squeeze [1] or Wheezy [2].

[1] http://metadata.ftp-master.debian.org/changelogs/main/l/linu... [2] http://metadata.ftp-master.debian.org/changelogs/main/l/linu...

Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by aroch on Friday January 22, 2016 @08:20AM (#10952508)
If you update a central library (e.g. openssl), you'll have to restart in order to deal with in-memory copies being used by other programs. If you're running a Debian server one of the packages to include in your base install is debian-goodies or needrestart because the former bundles a very helpful little script called "checkrestart" and the latter is an updated systemd-compatible version, both of which use `lsof` under the hood to determine when and why package updates require a restart for full effect.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by bgray on Friday January 22, 2016 @08:53AM (#10952657)
But do you? You really only need to restart the processes using those packages. Technically, a kernel update (specifically security update, bug fixes may not be important) would only require a reboot.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by jerf on Friday January 22, 2016 @09:03AM (#10952718)
Yes, you can restart all processes using SSL.

However, I've often been in situations where I reboot anyhow, because rebooting means I'm 100% confident the old code is gone, whereas if I try to get clever and avoid the restart, I'm significantly less confident. Depending on how hard it is to validate the security bug, that can be a problem.

Plus, for much of the past 20 years for many computers, if you're going to restart all services, adding in the last step for rebooting doesn't add all that significantly to the downtime. Server-class hardware often have things that make that not true (stupid RAID cards), but for everything else you were often only adding, say, 25% for the actual reboot.

Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by ultramancool on Friday January 22, 2016 @03:28PM (#10955378)
You don't need to be 100% confident the old code is gone - just 100% confident the old code is no longer exposed to the network - check your sockstat/netstat and call it a day.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by hs86 on Friday January 22, 2016 @09:05AM (#10952723)
It gets complicated when central libraries like glibc have to be updated. I did this once with checkrestart on Debian Wheezy and I had to restart nearly everything except for the init process. So in this case just restarting the system would have been faster and easier.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by NoGravitas on Friday January 22, 2016 @10:28AM (#10953217)
For lots of core stuff, you don't technically need to reboot, but you probably do need to go down to single user mode and come back up (consider upgrading glibc or openssl), and at that point you might as well reboot.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by niutech on Monday January 25, 2016 @02:59AM (#10966109)
Rebooting also closes unused sockets, closes opened descriptors, fixes memory leaks, cleans /tmp and performs fsck if needed. So it is good to reboot.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by marcosdumay on Friday January 22, 2016 @12:12PM (#10953998)
Well, the server is there to host some service. If you'd need to restart the service deamon, why not restart the machine for once, and make everything simpler?

Also, boot time bugs are a huge issue. They can creep during the entire time your system is up, and only show up during a reboot. Thus, if your server only has unplanned restarts, you'll only discover those bugs when you have yet another pressing issue to deal with, and also, likely at 3 in the morning on a Sunday.

So, make things better for you, and restart those servers once in a while, when things are quiet.

Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by Xorlev on Friday January 22, 2016 @10:20AM (#10953159)
KSplice helps you avoid the need to reboot even with many kernel changes. KSplice is the delta layer that gets you from security patch to maintenance window for a real reboot.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by ultramancool on Friday January 22, 2016 @03:25PM (#10955362)
Not only that but you only reboot when there's a kernel update that you care about. If it's not a security update or it's not a security update that affects you. I don't reboot for remote exploits in kernel services I don't use or single service VMs with local privilege escalation vulns.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by Kesty on Friday January 22, 2016 @11:16AM (#10953558)
Since a lot of updates will require for you to stop or the service anyhow, adding a reboot at the end before bringing everything back up it's not that bad of an idea.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by Joeri on Friday January 22, 2016 @03:02PM (#10955206)
I once had a debian stable desktop and home server reach two years of uptime using that strategy of upgrading everything except the kernel. Some upgrades, like a newer glibc, were quite tricky to accomplish without a reboot as you had to restart nearly every process. It was a fun game so i didn't mind the effort. Eventually a power outage wiped away my uptime.
Re:Server Retired After 18 Years Running on FreeBSD 2.2.1 an... by ptman on Saturday January 23, 2016 @05:39AM (#10957941)
Isn't modern dbus something that you can't restart without rebooting the computer? I think...