diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-22 11:28:36 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-24 11:46:26 +0200 |
commit | 3598aff4d963b2e51ac74d206161da47bfde785c (patch) | |
tree | 589732f56642d07b3e10f9c806719979debfa431 /src/rpm | |
parent | 6d825ab2d42d3219e49a192bf99f9c09134a0df4 (diff) | |
download | systemd-3598aff4d963b2e51ac74d206161da47bfde785c.tar.gz |
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.
Diffstat (limited to 'src/rpm')
-rwxr-xr-x | src/rpm/systemd-update-helper.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpm/systemd-update-helper.in b/src/rpm/systemd-update-helper.in index 9fa49fa131..f3c75b75fa 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) |