Correct order for prosody-component-register

Compontents that intend to register against Prosody via unit files
should be started completely before registration completes.
This commit is contained in:
Alex Palaistras 2023-11-05 16:47:27 +00:00
parent 5163fd4da0
commit b0a8100fbb
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,9 @@
[Unit]
Description=Biboumi IRC Gateway for XMPP
Wants=container-build@%N.service container-volume@%N.service prosody.service prosody-component-register@%N.service
After=container-build@%N.service container-volume@%N.service prosody.service prosody-component-register@%N.service
After=container-build@%N.service container-volume@%N.service prosody.service
Before=prosody-component-register@%N.service
PropagatesStopTo=prosody-component-register@%p-%i.service
[Container]
ContainerName=%N

View File

@ -1,7 +1,9 @@
[Unit]
Description=Slidge Gateway for XMPP (%i)
Wants=container-build@%p.service container-volume@%p-%i.service prosody.service prosody-component-register@%p-%i.service
After=container-build@%p.service container-volume@%p-%i.service prosody.service prosody-component-register@%p-%i.service
After=container-build@%p.service container-volume@%p-%i.service prosody.service
Before=prosody-component-register@%p-%i.service
PropagatesStopTo=prosody-component-register@%p-%i.service
[Service]
Type=notify