needrestart checks which daemons need to be restarted after library upgrades. It is inspired by checkrestart from the debian-goodies package. needrestart supports but does not require systemd. If systemd is not available or does not return a service name needrestart uses hooks to identify the corresponding System V init script. If a process inside a container (LXC, docker) it suggests to restart the entire container. needrestart contains a heuristic for different interpreter languages: it tries to detect if outdated script code/modules are in use (Java, Perl, Python, Ruby). -- In my opinion, the major advantages of needrestart over app-admin/checkrestart (which is already in Portage) are: * needrestart works with systemd as well as without systemd * needrestart is more actively developed/maintained
https://github.com/gentoo/gentoo/pull/1825
And what about app-admin/restart_services?
(In reply to Tomáš Mózes from comment #2) > And what about app-admin/restart_services? According to its home page at https://dev.gentoo.org/~mschiff/restart_services/ : "This tool currently only supports OpenRC, no systemd support (yet?)" needrestart also seems to be more active, works on other distros (so it has a bigger user/developer test base), and has more features (such as heuristic for determining which services need to be restarted).
commit d068491162cd182e4227326322c11bf886279be1 (HEAD -> master, origin/master, origin/HEAD) Author: Craig Andrews <candrews@integralblue.com> AuthorDate: Mon Jul 4 14:00:38 2016 -0400 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: Thu Jul 7 07:19:28 2016 +0000 app-admin/needrestart: Add ebuild to the tree. needrestart checks which daemons need to be restarted after library upgrades. It is inspired by checkrestart from the debian-goodies package. needrestart supports but does not require systemd. If systemd is not available or does not return a service name needrestart uses hooks to identify the corresponding System V init script. If a process inside a container (LXC, docker) it suggests to restart the entire container. needrestart contains a heuristic for different interpreter languages: it tries to detect if outdated script code/modules are in use (Java, Perl, Python, Ruby). Gentoo-Bug: https://bugs.gentoo.org/588010 Closes: https://github.com/gentoo/gentoo/pull/1825 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> app-admin/needrestart/Manifest | 1 + app-admin/needrestart/metadata.xml | 18 ++++++++++++++++++ app-admin/needrestart/needrestart-2.8.ebuild | 37 +++++++++++++++++++++++++++++++++++++ app-admin/needrestart/needrestart-9999.ebuild | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 app-admin/needrestart/Manifest create mode 100644 app-admin/needrestart/metadata.xml create mode 100644 app-admin/needrestart/needrestart-2.8.ebuild create mode 100644 app-admin/needrestart/needrestart-9999.ebuild