home-pods/pod-dendrite.service

22 lines
923 B
SYSTEMD
Raw Permalink Normal View History

2022-08-21 10:59:37 +02:00
[Unit]
Description=Podman pod-dendrite.service
Wants=network-online.target
After=network-online.target
RequiresMountsFor=
Requires=container-dendrite-monolith.service container-dendrite-postgres.service
Before=container-dendrite-monolith.service container-dendrite-postgres.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/pod-dendrite.pid %t/pod-dendrite.pod-id
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-dendrite.pid --pod-id-file %t/pod-dendrite.pod-id -p 8008:8008 -p 8447:8448 --name dendrite --replace
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-dendrite.pod-id
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-dendrite.pod-id -t 10
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-dendrite.pod-id
PIDFile=%t/pod-dendrite.pid
Type=forking
[Install]
WantedBy=default.target