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

Add a check to assess the output of "needs-restarting" and note the parents of the dependencies #67

Open
swampdogmash opened this issue Apr 2, 2024 · 1 comment

Comments

@swampdogmash
Copy link
Contributor

To further enhance the yum check, report back the number of process that have a dependency on an updated package, so it is more visible why the reboot is required. Make it an optional check as it could be quite lengthy and make it cover all the various flavours of centos/rhel.

This should be achievable using "needs-restarting" but will vary on it's use between OS flavour.

@swampdogmash
Copy link
Contributor Author

swampdogmash commented Nov 14, 2024

needs-restarting is not installed by default on many systems. This would need to be a check to see if the command exists first, then run if available.

Running the command on several our our RHEL servers did result in a very long wait time, so this may not be faesible anyway, as it would either timeout or take too long to report back. Without any switches the "needs-restarting" command will search through all smaps for file descriptors - which could potentially take hours. https://serverfault.com/questions/1044448/needs-restarting-hangs-on-rhel7

using --reboothint might work ok to get a faster response but only a higher level overview to add to the reported service output

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

No branches or pull requests

1 participant