From: Zbigniew Jędrzejewski-Szmek Date: Thu, 22 Jul 2021 09:28:36 +0000 (+0200) Subject: rpm: call +needs-restart in parallel X-Git-Tag: v250-rc1~920^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3598aff4d963b2e51ac74d206161da47bfde785c;p=thirdparty%2Fsystemd.git rpm: call +needs-restart in parallel Some rpms install a bunch of units… It seems nicer to invoke them all in parallel. In particular, timeouts in systemctl also run in parallel, so if there's some communication mishap, we will wait less. --- diff --git a/src/rpm/systemd-update-helper.in b/src/rpm/systemd-update-helper.in index 9fa49fa1319..f3c75b75fa7 100755 --- a/src/rpm/systemd-update-helper.in +++ b/src/rpm/systemd-update-helper.in @@ -32,8 +32,9 @@ case "$command" in [ -d /run/systemd/system ] || exit 0 for unit in "$@"; do - systemctl set-property "$unit" Markers=+needs-restart || : + systemctl set-property "$unit" Markers=+needs-restart & done + wait ;; system-reload-restart|system-reload|system-restart)