How do I find which services and programs to restart after a 'freebsd-update install'?

After I run freebsd-update fetch I get a long list of files (example) that will get updated with a freebsd-update install.

For some of them, it's obvious that it's a service I need to restart (like sshd(8)). But for others, it's not.

What if there is a vulnerable process of csh(1) running?

How about libraries. How do I know which programs use that library so that I can restart them to use the updated one?

Am I supposed to do a reboot?
 
It all depends what gets updated. In principle you'd only need to restart a service if it (or parts of it) are updated. As there's no way to tell beforehand you have to look for it yourself. For example the last security update updated rpcbind. If you don't use it you don't need to restart anything. If you use NFS it's likely you do need to restart it. And perhaps other services that depend on it may need to be restarted too. In short, safest bet, just reboot. Screw uptimes. They're not important.
 
Once we get base system packaged with pkg(8) (supposedly in FreeBSD 11) it might become possible to have control over service restarts on updates but not before.
 
It all depends what gets updated. In principle you'd only need to restart a service if it (or parts of it) are updated. As there's no way to tell beforehand you have to look for it yourself. For example the last security update updated rpcbind. If you don't use it you don't need to restart anything. If you use NFS it's likely you do need to restart it. And perhaps other services that depend on it may need to be restarted too. In short, safest bet, just reboot. Screw uptimes. They're not important.

But but! Uptimes are our e-pride! (in reluctance to use a more streetwise word :p)

Once we get base system packaged with pkg(8) (supposedly in FreeBSD 11) it might become possible to have control over service restarts on updates but not before.

That sounds great! Can't wait.
 
Back
Top