From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH ha-manager] postinst: check whether the system is managed by systemd
Date: Fri, 28 Feb 2025 13:57:37 +0100 [thread overview]
Message-ID: <20250228125737.353634-1-m.sandoval@proxmox.com> (raw)
..before running systemctl. Allows for building packages in containers
not managed by systemd.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
debian/pve-ha-manager.postinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/pve-ha-manager.postinst b/debian/pve-ha-manager.postinst
index 5c8f0cd..220123f 100644
--- a/debian/pve-ha-manager.postinst
+++ b/debian/pve-ha-manager.postinst
@@ -4,7 +4,7 @@ set -e
#DEBHELPER#
-if [ "$1" = "triggered" ]; then
+if [ "$1" = "triggered" ] && [ -d "/run/systemd/system" ]; then
if systemctl --quiet is-active pve-ha-lrm.service; then
deb-systemd-invoke reload-or-try-restart pve-ha-lrm.service || true
fi
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next reply other threads:[~2025-02-28 12:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-28 12:57 Maximiliano Sandoval [this message]
2025-02-28 15:03 ` Thomas Lamprecht
2025-03-03 8:46 ` [pve-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250228125737.353634-1-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.