Hi, Am Freitag, 25. November 2022, 13:37:40 CET schrieb Thorsten Kukuk:
Hi,
On Fri, Nov 25, Andreas Vetter wrote:
Hi, that works great for me, thank you!
One glitch: When a library used by process 1 is updated, it is not catched by the service restarts. I manually do a systemctl daemon-reexec
Is there a way to automate that?
Until now only restart of services is implemented (but here I did run into a zypper bug https://bugzilla.suse.com/show_bug.cgi?id=1205636, so some services will not be restarted)
Hm, interesting. I knew that zypper ps does not always find the right service, but didn't dig into. This might be the same problem. Another thing: What do you think of triggering a reboot, when dbus needs to be restarted? If positive, do we need an opt-out possibility for this? I'm working on that.
PID 1 is not a service and parsing of daemons not started by a service is not implemented. This would require a hardcoded list, how which process could be restarted... Do you think the following is worth a feature request to zypper? I am thinking of a extra Exit Code for restarting systemd PID1, in addition to 102 (reboot) and 103 (restart services).
But of course: PRs are always welcome ;)
Thorsten TIA, Andreas
[...] deleted example -- Mit freundlichen Gruessen, Andreas Vetter