Files
archy/image-recipe/configs/archipelago-runtime-podman.service

26 lines
834 B
Desktop File

# UNINSTALLED USER unit: rootless pause/bootstrap lifetime is not a command job.
[Unit]
Description=Archipelago persistent rootless Podman context
Requires=dbus.socket
After=dbus.socket
[Service]
Type=oneshot
RemainAfterExit=yes
ExecCondition=/usr/bin/python3 -I -S /usr/libexec/runtime_uplink.py --c01 --runtime-dir=%t
ExecStart=/usr/bin/podman info --format={{.Store.GraphRoot}}
# info alone creates a partial rootless-netns directory on Podman 5.4. Appoint
# the actual retained network context before the worker's independent guard.
# This starts no app/container and runs no caller-selected command.
ExecStartPost=/usr/bin/podman unshare --rootless-netns /usr/bin/true
TimeoutStartSec=90
TimeoutStopSec=infinity
SendSIGKILL=no
KillMode=control-group
Delegate=yes
NoNewPrivileges=no
UMask=0077
[Install]
WantedBy=default.target