From 8d47732670cea1319240efbd30254bcd25443e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 11 Apr 2024 12:10:48 +0200 Subject: [PATCH] d/postinst: make deb-systemd-invoke non-fatal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit else this can break an upgrade for unrelated reasons (regular debhelper also constructs the restart invocations like this, it even redirects output to /dev/null) Signed-off-by: Fabian Grünbichler --- debian/postinst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/postinst b/debian/postinst index c97c4fdbe..aba399045 100755 --- a/debian/postinst +++ b/debian/postinst @@ -135,11 +135,11 @@ case "$1" in # the ExecStartPre doesn't triggers on service reload, so just in case pvecm updatecerts --silent || true - deb-systemd-invoke reload-or-try-restart pvedaemon.service - deb-systemd-invoke reload-or-try-restart pvestatd.service - deb-systemd-invoke reload-or-try-restart pveproxy.service - deb-systemd-invoke reload-or-try-restart spiceproxy.service - deb-systemd-invoke reload-or-try-restart pvescheduler.service + deb-systemd-invoke reload-or-try-restart pvedaemon.service || true + deb-systemd-invoke reload-or-try-restart pvestatd.service || true + deb-systemd-invoke reload-or-try-restart pveproxy.service || true + deb-systemd-invoke reload-or-try-restart spiceproxy.service || true + deb-systemd-invoke reload-or-try-restart pvescheduler.service || true exit 0;; @@ -215,7 +215,7 @@ case "$1" in dh_action="start" fi if systemctl -q is-enabled "$unit"; then - deb-systemd-invoke $dh_action "$unit" + deb-systemd-invoke $dh_action "$unit" || true fi done fi