as I said, creating an infra with "--share=" (to be able to set different hostnames) will cause podman pod ps to show status degraded
> We need one top-level service to manage the pod.
if the above is solved, I might go with this
this is the part you are talking about
[Unit]
Description=Podman pod-pod_test.service
Documentation=man:podman-generate-systemd(1)
Wants=network-online.target
After=network-online.target
RequiresMountsFor=
Requires=container-test_web80.service container-test_web90.service
Before=container-test_web80.service container-test_web90.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStart=/usr/bin/podman start 5f2458ba5eac-infra
ExecStop=/usr/bin/podman stop -t 10 5f2458ba5eac-infra
ExecStopPost=/usr/bin/podman stop -t 10 5f2458ba5eac-infra
PIDFile=/run/user/1000/overlay-containers/a3a4ca1b8e4d5a7bcf140be9bff3a3b2c86fa363ecf4b321a6750135dbc2e8c1/userdata/conmon.pid
Type=forking
in case of no infra we can make this part Type=oneshot
or make it the pid of "podman wait" as below
> We could tie it to the first container in the pod but that may not be a generic solution
I would like to be able to make it the pid of "podman wait test_web80 test_web90"
in my use case, it's a development stack of multiple containers (eg. wordpress, mysql, memcache)
some users want the exit condition to be
1. any container stopped
2. all containers stopped
3. specific container stopped