Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588010 - app-admin/needrestart - checks which daemons need to be restarted after library upgrades.
Summary: app-admin/needrestart - checks which daemons need to be restarted after libra...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-07-04 17:43 UTC by Craig Andrews
Modified: 2016-07-07 07:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2016-07-04 17:43:43 UTC
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
Comment 1 Craig Andrews gentoo-dev 2016-07-04 18:02:15 UTC
https://github.com/gentoo/gentoo/pull/1825
Comment 2 Tomáš Mózes 2016-07-05 08:29:11 UTC
And what about app-admin/restart_services?
Comment 3 Craig Andrews gentoo-dev 2016-07-05 14:48:05 UTC
(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).
Comment 4 Patrice Clement gentoo-dev 2016-07-07 07:51:46 UTC
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