* [pve-devel] [PATCH manager] d/postinst: make deb-systemd-invoke non-fatal
@ 2024-04-11 10:10 Fabian Grünbichler
2024-04-17 14:56 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Grünbichler @ 2024-04-11 10:10 UTC (permalink / raw)
To: pve-devel
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 <f.gruenbichler@proxmox.com>
---
debian/postinst | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/debian/postinst b/debian/postinst
index 6138ef6d0..2799f581c 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -123,11 +123,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;;
@@ -199,7 +199,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
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-17 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-11 10:10 [pve-devel] [PATCH manager] d/postinst: make deb-systemd-invoke non-fatal Fabian Grünbichler
2024-04-17 14:56 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox