coreos-home-server/service/slidge/systemd/slidge@.service
Alex Palaistras df1c244686 slidge: Update to latest version, move to Bookworm
This reflects changes made to Slidge for an effective split of plugins
from core, and bundles each plugin in their own virtual environment.
2023-06-19 11:03:02 +01:00

24 lines
1000 B
Desktop File

[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
[Service]
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
Restart=on-failure
Environment=PODMAN_SYSTEMD_UNIT=%n
EnvironmentFile=%E/coreos-home-server/prosody/prosody.env
ExecStart=/bin/podman run --replace --name %p-%i --net internal --sdnotify=conmon \
--entrypoint '["/venv/%i/bin/python", "-m", "slidge"]' \
--env-file %E/coreos-home-server/%p/%p.env \
--volume %p-%i:/var/lib/slidge:z \
localhost/%p:latest \
--jid=%i.${PROSODY_HOST}
ExecStop=/bin/podman stop --ignore --time 10 %p-%i
ExecStopPost=/bin/podman rm --ignore --force %p-%i
[Install]
WantedBy=multi-user.target