summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2024-06-29 16:55:22 -0400
committerMike Gilbert <floppym@gentoo.org>2024-06-29 16:55:22 -0400
commit80d6e7f5ac6856d9405fe607930b60622fe68312 (patch)
tree58ad84b61b82f8a7a6d3acfc8b6eb5997b7cdd0d /sys-apps
parentapp-office/libreoffice: Stabilize 24.2.4.2-r1 ppc64, #933693 (diff)
downloadgentoo-80d6e7f5ac6856d9405fe607930b60622fe68312.tar.gz
gentoo-80d6e7f5ac6856d9405fe607930b60622fe68312.tar.bz2
gentoo-80d6e7f5ac6856d9405fe607930b60622fe68312.zip
sys-apps/systemd: signal user managers to reexec in postinst
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/systemd/systemd-256.1-r1.ebuild (renamed from sys-apps/systemd/systemd-256.1.ebuild)5
-rw-r--r--sys-apps/systemd/systemd-9999.ebuild5
2 files changed, 10 insertions, 0 deletions
diff --git a/sys-apps/systemd/systemd-256.1.ebuild b/sys-apps/systemd/systemd-256.1-r1.ebuild
index b48d6de0bc38..d2c7ad24ef7b 100644
--- a/sys-apps/systemd/systemd-256.1.ebuild
+++ b/sys-apps/systemd/systemd-256.1-r1.ebuild
@@ -495,6 +495,11 @@ pkg_postinst() {
ebegin "Reexecuting system manager (systemd)"
systemctl daemon-reexec
eend $? || FAIL=1
+
+ # https://lists.freedesktop.org/archives/systemd-devel/2024-June/050466.html
+ ebegin "Signaling user managers to reexec"
+ systemctl kill --kill-whom='main' --signal='SIGRTMIN+25' 'user@*.service'
+ eend $?
fi
if [[ ${FAIL} ]]; then
diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild
index b48d6de0bc38..d2c7ad24ef7b 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -495,6 +495,11 @@ pkg_postinst() {
ebegin "Reexecuting system manager (systemd)"
systemctl daemon-reexec
eend $? || FAIL=1
+
+ # https://lists.freedesktop.org/archives/systemd-devel/2024-June/050466.html
+ ebegin "Signaling user managers to reexec"
+ systemctl kill --kill-whom='main' --signal='SIGRTMIN+25' 'user@*.service'
+ eend $?
fi
if [[ ${FAIL} ]]; then