From 58b22cf334d6f92754ef84e2a7c53a90500a0695 Mon Sep 17 00:00:00 2001 From: Anita Zhang Date: Jan 29 2020 23:24:36 +0000 Subject: Resort to `kill -TERM 1` to re-exec the daemon This might be more reliable when upgrading from an older systemd package. The systemctl call to reexec will occasionally fail with "Access denied" when we upgrade from a much older version (like 2-3 versions older). However, sending PID 1 a SIGTERM is documented to be mostly the same and fixes it 100% of the times. Signed-off-by: Anita Zhang Signed-off-by: Filipe Brandenburger --- diff --git a/systemd.spec b/systemd.spec index bc11419..edad099 100644 --- a/systemd.spec +++ b/systemd.spec @@ -514,7 +514,7 @@ getent passwd systemd-resolve &>/dev/null || useradd -r -u 193 -l -g systemd-res %post systemd-machine-id-setup &>/dev/null || : -systemctl daemon-reexec &>/dev/null || : +systemctl daemon-reexec &>/dev/null || kill -TERM 1 &>/dev/null || : journalctl --update-catalog &>/dev/null || : systemd-tmpfiles --create &>/dev/null || :