26 ms·
There are scripts and daemons that help you determine what needs restarting[1,2]. NixOS installs can go in separate directory prefixes when there are conflicts.
by ece 6y ago
There are scripts and daemons that help you determine what needs restarting[1,2]. NixOS installs can go in separate directory prefixes when there are conflicts. For Gentoo and other Linux distributions, maintainers usually won't mark something stable without resolving conflicts, and this usually means sticking to older stable version of libraries until newer versions of libraries are fully supported by all installed packages. This can definitely be more work for maintainers, and as the blog posts says, it's a sisyphean task.
[1] https://manpages.debian.org/buster/debian-goodies/checkrestart.1.en.html https://manpages.debian.org/buster/debian-goodies/checkresta...
[2] https://github.com/liske/needrestart https://github.com/liske/needrestart
- orra 6y agoThanks, checkrestart looks useful. I wasn't aware of it. Given that it's in a goodies package though, I assume it's not integrated with apt—at least by default. I'm thinking of that apt prompt that says "There are services installed on your system which need to be restarted when certain libraries, such as libpam, libc, and libssl, are upgraded." I presume then that uses a hardcoded list of important services.
- ece 6y agoI can't help with checkrestart or apt questions, but if I can plug 'needrestart -r a': it restarts services, messages outdated shells/user logins and checks for newer kernels/microcode. It will also tell you if any interpreters/containers need restarting, but YMMV here. It's never blown up for me even when restarting boot services, and should work on any distro as far as I can tell. I use it on Gentoo.