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) 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... But of course: PRs are always welcome ;) Thorsten
Here is the example of tonight: <snip> # LANG=C zypper ps The following running processes use deleted files:
PID | PPID | UID | User | Command | Service | Files ------+-------+-----+------+---------+---------+---------------------------- 1 | 0 | 0 | root | systemd | | /usr/lib64/libcrypto.so.1.1 27013 | 27012 | 0 | root | systemd | | /usr/lib64/libcrypto.so.1.1
You may wish to restart these processes. See 'man zypper' for information about the meaning of values in the above table.
No core libraries or services have been updated since the last system boot. Reboot is probably not necessary. # systemctl daemon-reexec # LANG=C zypper ps The following running processes use deleted files:
PID | PPID | UID | User | Command | Service | Files ------+-------+-----+------+---------+---------+---------------------------- 27013 | 27012 | 0 | root | systemd | | /usr/lib64/libcrypto.so.1.1
You may wish to restart these processes. See 'man zypper' for information about the meaning of values in the above table.
No core libraries or services have been updated since the last system boot. Reboot is probably not necessary. # </snip>
Remark: The remaining systemd process vanishes after logging out, so should not be a problem in automatic mode.
--
Mit freundlichen Gruessen, Andreas Vetter
-- Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany Managing Director: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)