mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
df1c244686
This reflects changes made to Slidge for an effective split of plugins from core, and bundles each plugin in their own virtual environment.
24 lines
1000 B
Desktop File
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
|