Add pkg.services_need_restart - #58262
Merged
Merged
Conversation
agraul
commented
Aug 21, 2020
agraul
force-pushed
the
pgk-list-outdated-services
branch
4 times, most recently
from
September 16, 2020 14:28
3e2c295 to
0db9e0c
Compare
agraul
force-pushed
the
pgk-list-outdated-services
branch
from
September 16, 2020 14:40
dbad856 to
e3c8f19
Compare
agraul
marked this pull request as ready for review
September 16, 2020 14:44
agraul
force-pushed
the
pgk-list-outdated-services
branch
2 times, most recently
from
September 16, 2020 15:26
8b096dc to
ddae832
Compare
Contributor
Author
|
I'll fix the CI complains due to the Python2 removal and push the changes asap, hopefully tomorrow. |
agraul
force-pushed
the
pgk-list-outdated-services
branch
4 times, most recently
from
September 17, 2020 17:49
9bcb85c to
3af77bc
Compare
agraul
commented
Sep 17, 2020
agraul
force-pushed
the
pgk-list-outdated-services
branch
7 times, most recently
from
September 18, 2020 13:49
a9036bb to
d41a37d
Compare
agraul
force-pushed
the
pgk-list-outdated-services
branch
3 times, most recently
from
September 29, 2020 08:45
771991d to
ce52020
Compare
agraul
force-pushed
the
pgk-list-outdated-services
branch
3 times, most recently
from
December 17, 2020 10:42
74a900a to
e5b24fb
Compare
agraul
force-pushed
the
pgk-list-outdated-services
branch
2 times, most recently
from
January 13, 2021 16:10
b240ffa to
6ce02c7
Compare
agraul
force-pushed
the
pgk-list-outdated-services
branch
from
January 25, 2021 11:32
6ce02c7 to
731b477
Compare
OrangeDog
added a commit
to OrangeDog/salt
that referenced
this pull request
Feb 2, 2021
Unfortunately the virtual package must be manually resolved. Also note PR saltstack#58262 is implementing the service restart checks. It is arguable whether it should be included, as technically you do not need a full reboot.
OrangeDog
suggested changes
Feb 2, 2021
agraul
force-pushed
the
pgk-list-outdated-services
branch
from
February 12, 2021 12:12
731b477 to
a9369b0
Compare
agraul
force-pushed
the
pgk-list-outdated-services
branch
from
February 24, 2021 20:33
a9369b0 to
0cecb75
Compare
Ch3LL
suggested changes
Mar 2, 2021
Ch3LL
left a comment
Contributor
There was a problem hiding this comment.
One small change. I would love to get this into 3003, but we will be tagging any day now so I cannot guarantee this.
This function translates a given PID to the systemd service name in case the process belongs to a running service. It uses DBUS for the translation if DBUS is available, falling back to parsing ``systemctl status -o json'' output.
pkg.services_need_restart returns a list of system services that were affected by package manager operations such as updates, downgrades or reinstallations without having been restarted. This might cause issues, e.g. in the case a shared object was loaded by a process and then replaced by the package manager.
pkg.services_need_restart returns a list of system services that were affected by package manager operations such as updates, downgrades or reinstallations without having been restarted. This might cause issues, e.g. in the case a shared object was loaded by a process and then replaced by the package manager. Requires checkrestart, which is part of the debian-goodies package and available from official Ubuntu and Debian repositories.
pkg.services_need_restart returns a list of system services that were affected by package manager operations such as updates, downgrades or reinstallations without having been restarted. This might cause issues, e.g. in the case a shared object was loaded by a process and then replaced by the package manager. Requires dnf with the needs-restarting plugin, which is part of dnf-plugins-core and installed by default on RHEL/CentOS/Fedora. Also requires systemd for the mapping between PIDs and systemd services.
Co-authored-by: Wayne Werner <waynejwerner@gmail.com>
agraul
force-pushed
the
pgk-list-outdated-services
branch
from
March 2, 2021 18:59
0cecb75 to
d89a3e8
Compare
Contributor
Author
|
@Ch3LL good catch! I've changed the NEXT to 3003 in all three pkg modules |
Ch3LL
approved these changes
Mar 3, 2021
s0undt3ch
approved these changes
Mar 3, 2021
twangboy
approved these changes
Mar 4, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Add
pkg.services_need_restartingto Zypper, Yum(DNF) and Apt.Current name proposal is
pkg.services_need_restarting, but I don't mind changing the name to a better one if suggested.What issues does this PR fix or reference?
Fixes: #58261
New Behavior
Merge requirements satisfied?
Commits signed with GPG?
Yes (always ;))