]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpm: Switch to new macros for handling of systemd units
authorAndrea Bolognani <abologna@redhat.com>
Wed, 5 Jul 2023 16:48:32 +0000 (18:48 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 27 Jul 2023 16:02:58 +0000 (18:02 +0200)
commita7bc8d16062c786eae298b3db3ee2f0d06b12151
tree72d81c38dde53e1ed72fa8271588b22383a8364f
parent3bfc76a953c24793c2193768cca68d428490c01a
rpm: Switch to new macros for handling of systemd units

In most cases the replacement is straightforward, with the
biggest difference being that we now schedule restarts during
%pre instead of %post. This also means that we can get rid of
%post for most packages, reducing the number of scriptlets that
need to run during install/upgrade.

Notable exceptions are libvirt-guests.service, where we stop
using the standard systemd macros to adopt our custom ones, as
well as the virtlogd and virtlockd services, where the reload
operation is moved from %postun to %posttrans.

https://bugzilla.redhat.com/show_bug.cgi?id=2210058

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
libvirt.spec.in