From 3f0b672633e2729553d3b7e5085d39aca0f3144e Mon Sep 17 00:00:00 2001 From: Alex Palaistras Date: Tue, 18 Jul 2023 21:55:17 +0100 Subject: [PATCH] prosody: De/Reactivate components after reload --- service/prosody/systemd/prosody-component-register@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/prosody/systemd/prosody-component-register@.service b/service/prosody/systemd/prosody-component-register@.service index 0ac3e86..06a43f3 100644 --- a/service/prosody/systemd/prosody-component-register@.service +++ b/service/prosody/systemd/prosody-component-register@.service @@ -13,8 +13,8 @@ EnvironmentFile=-%E/coreos-home-server/%i/%i.env ExecStartPre=/bin/install --mode 0700 --directory /tmp/%N ExecStartPre=/bin/sh -c "envsubst < ${COMPONENT_CONF} > /tmp/%N/component.cfg.lua" ExecStartPre=/bin/podman cp --archive=false /tmp/%N/component.cfg.lua prosody:/etc/prosody/conf.d/10-%i.cfg.lua -ExecStartPre=/bin/sh -c 'podman exec prosody prosodyctl shell host deactivate "$PROSODY_COMPONENT_NAME" || true' ExecStartPre=/bin/podman exec prosody prosodyctl shell config reload +ExecStartPre=/bin/sh -c 'podman exec prosody prosodyctl shell host deactivate "$PROSODY_COMPONENT_NAME" || true' ExecStart=/bin/podman exec prosody prosodyctl shell host activate "$PROSODY_COMPONENT_NAME" ExecStartPost=/bin/rm -Rf /tmp/%N ExecStop=/bin/podman exec prosody prosodyctl shell host deactivate "$PROSODY_COMPONENT_NAME"