uyuni-project / uyuni

Source code for Uyuni
https://www.uyuni-project.org/
GNU General Public License v2.0
434 stars 181 forks source link

Also show services requiring a restart #8329

Open stdevel opened 9 months ago

stdevel commented 9 months ago

Short description

Currently, Uyuni shows systems that require a reboot, e.g. after updating the kernel or systemd. It would very very useful to also have these information about services that require a restart.

Details

These information could be gathered using the operating system's package manager, e.g.:

# zypper ps
# needs-restarting
# needsrestart
...

It can also be gathered by checking old references below /proc/PID/maps.

Katello also implements it like this and has an additional column in the UI:

grafik

What do you think?

admd commented 8 months ago

Hi Christian,

Thank you for this. This is interesting one and I definitely see value in it.

Having said that, I do have some concerns from UX perspective. I just ran a zypper ps command on a test machine, I got the following list (it's not complete one btw).

Screenshot 2024-02-19 at 1 30 07 PM

While it may not be the typical scenario, and in an ideally managed system, only a few services would require a restart, it could still pose challenges to display all the services in such instances.

stdevel commented 8 months ago

Hi @admd, it's definitely not an easy decision to make, you're right.

These seem to be the libraries used by the katello-host-tool tracer addon: https://github.com/Katello/katello-host-tools/tree/master/src/katello/tracer

Maybe this can be an inspiration? 🙂

admd commented 8 months ago

@stdevel thank you for the pointers. We will look into it. It might not come soon but we have it in our backlog.