Rootless Systemd & Quadlet Execution Model¶
StackPilot utilizes Red Hat's Podman Quadlets to bridge containerized application workflows directly with the native Linux service manager (systemd).
1. How Quadlets Work¶
Quadlets are declarative configuration files placed in systemd generator search paths:
- User-scoped path: ~/.config/containers/systemd/
- System-scoped path: /etc/containers/systemd/
When systemctl --user daemon-reload is executed, the Quadlet generator parses these files and dynamically synthesizes standard .service units on the fly.
2. Quadlet File Types¶
StackPilot handles four primary Quadlet unit types:
.container¶
Defines a single container instance:
[Unit]
Description=Nextcloud Application
After=network-online.target
[Container]
Image=docker.io/library/nextcloud:stable
ContainerName=nextcloud-app
Environment=POSTGRES_HOST=nextcloud-db
Volume=nextcloud-data.volume:/var/www/html
PublishPort=8080:80
[Install]
WantedBy=default.target
.pod¶
Defines a shared network and IPC pod boundary where multiple containers communicate over localhost:
[Unit]
Description=Arrstack Pod
After=network-online.target
[Pod]
PodName=arrstack
PublishPort=8080:8080
PublishPort=8989:8989
[Install]
WantedBy=default.target
.volume & .network¶
Manage persistent storage volumes and isolated container networks declaratively without calling manual podman volume create commands.
3. Lingering Sessions (loginctl enable-linger)¶
By default, Linux systemd user sessions terminate when the user logs out.
To ensure homelab containers survive terminal disconnects and boot on machine startup:
The StackPilot installer automatically configures lingering, ensuring the rootless user manager runs as a standing service.