Feedback on Zypper

I would like to say that if zypper had an option for example something like zypper ps -r or similar to restart all the running processes that need to be restarted I think that would be awesome. Then I could keep my uptime and restart all the processes aswell.

And quite some more threads…

Moving this to Open Chat as not an application support question.

Ok thanks, sorry.

All good. Do check out the topic that user hui linked to. :slight_smile:

It’s a neat idea, but I can see it would be really difficult to implement.

zypper ps reports running processes that are holding open files that no longer exist in the filesystem.

So, this could be something that relates to a systemd service (which is easy to manage). But it can also be desktop applications, and desktop applications would have different requirements for a restart.

Do you just kill the process? That’s not a great way to handle it, IMO, even if you do a SIGINT or SIGTERM (which are generally thought of as a “graceful termination”; INT is not a request, TERM is), some programs won’t handle that as gracefully - if they don’t have a handler implemented, they won’t, for example, save open files. Or a SIGINT might be ignored, making it necessary to kill the process, which definitely can lead to data loss (and depending on the state of the program, could potentially leave you with zombie process - which isn’t itself a huge deal, just taking up a PID in the system, but not consuming resources).

What I usually do is just find a time to reboot the system if it’s not systemd services that I can (or want to deal with) restarting. There’s no prize for “most uptime of a system” the way there was in the 80s and 90s, particularly for home systems. :wink:

2 Likes