mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
Alex Palaistras
d83017d689
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.
22 lines
906 B
Desktop File
22 lines
906 B
Desktop File
[Unit]
|
|
Description=Spectrum IM Transport 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
|
|
|
|
[Service]
|
|
Type=notify
|
|
NotifyAccess=all
|
|
SyslogIdentifier=%N
|
|
Restart=on-failure
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
ExecStart=/bin/podman run --replace --name %p-%i --net internal --sdnotify=conmon \
|
|
--env SPECTRUM_HOSTNAME=%p-%i --env SPECTRUM_PROTOCOL=prpl-%i \
|
|
--env-file %E/coreos-home-server/%p/%p.env \
|
|
--volume %p-%i:/var/lib/spectrum2:z \
|
|
localhost/%p:latest
|
|
ExecStop=/bin/podman stop --ignore --time 10 %p-%i
|
|
ExecStopPost=/bin/podman rm --ignore --force %p-%i
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|