coreos-home-server/service/biboumi/systemd/biboumi.service

21 lines
778 B
SYSTEMD
Raw Normal View History

2021-03-21 12:23:35 +00:00
[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
2021-03-21 12:23:35 +00:00
[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
2021-03-21 12:23:35 +00:00
[Install]
WantedBy=multi-user.target