Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

needs-restarting: Revert using systemd start time #538

Merged

Conversation

ppisar
Copy link
Contributor

@ppisar ppisar commented Jun 6, 2024

Since commit a0ac871 "dnf needs-restarting -s" failed to spot services started withing few seconds before updating their RPM package.

The cause was using systemd start time instead of a kernel boot time when computing an absolute start time of processes.

This patch removes using the systemd start time until a proper fix is found.

https://issues.redhat.com/browse/RHEL-39775

@@ -38,10 +38,6 @@ Note that in most cases a process should survive update of its binary and librar
.. note::
Needs-restarting will try to guess the boot time using three different methods:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/three/two

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I fixed it and force-pushed.

@evan-goode evan-goode self-assigned this Jun 6, 2024
Since commit a0ac871 "dnf
needs-restarting -s" failed to spot services started withing few
seconds before updating their RPM package.

The cause was using systemd start time instead of a kernel boot time
when computing an absolute start time of processes.

This patch removes using the systemd start time until a proper fix is
found.

https://issues.redhat.com/browse/RHEL-39775
@ppisar ppisar force-pushed the revert_systemd_boot_time branch from ddfbf04 to 78a541b Compare June 7, 2024 07:49
@evan-goode evan-goode merged commit f84b7e0 into rpm-software-management:master Jun 7, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants