coreos-home-server/config/service/biboumi/systemd/biboumi.service
Alex Palaistras d83017d689 Make Prosody components configurable
This allows for registering external components for Prosody as needed,
and enables us to create templated Spectrum services for each supported
protocol.

Configuration has been updated for Biboumi to allow for automated
registration against Prosody as well.
2021-10-26 13:30:40 +01:00

21 lines
778 B
Desktop File

[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
[Service]
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
Restart=on-failure
Environment=PODMAN_SYSTEMD_UNIT=%n
ExecStart=/bin/podman run --replace --name %N --net internal --sdnotify=conmon \
--env-file %E/coreos-home-server/%N/%N.env \
--volume %N:/var/lib/%N:z \
localhost/%N:latest
ExecStop=/bin/podman stop --ignore --time 10 %N
ExecStopPost=/bin/podman rm --ignore --force %N
[Install]
WantedBy=multi-user.target