Move daemon-reload from package %post scripts to file triggers
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 15 Nov 2015 00:14:34 +0000 (19:14 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 15 Nov 2015 23:38:37 +0000 (18:38 -0500)
commit873e413323dfff4023604849c70944674ae5cd29
treeea68a20f01598a8e62d18467e46e092842504bfa
parente3c4a681db0b7004904b95d55fd1a443161c9397
Move daemon-reload from package %post scripts to file triggers

This uses new functionality added in rpm 4.13. Instead of doing
one daemon-reload per packages, we do just one or two
(When both installing and uninstalling packages, we do
two. Unfortunately this also includes the common case of upgrades.
When only installing or when only installing, we do just one.)

New file triggers.systemd can be built, but the contents have
to be copied into the rpm spec file by hand. Using %{load} does
not seem to work. It can serve as documentation.
Makefile.am
src/core/.gitignore
src/core/macros.systemd.in
src/core/triggers.systemd.in [new file with mode: 0644]