Preventing restart of services during update

Is there a way how to prevent zypper/yast from restarting service during update? I’ve tried to set in /etc/sysconfig/services DISABLE_RESTART_ON_UPDATE=“yes”, but it seems that it’s ignored in Leap. At least during libvirt-client update. It restarts all VMs and this is fatal for our company, we can’t do anything for an hour. I need to do update and then restart VMs one by one some other time.

You probably don’t have the required “systemd macros” package. Install by running the following command and then your sysconfig command should work

zypper in systemd-rpm-macros

There probably should be a comment in the file /etc/sysconfig/services that this package is required

TSU

Thanks for the tip, but I’ve checked it and I have this package installed.