# TEMPLATE for a rootless user unit. # Install to ~/.config/systemd/user/podman-.service then: # systemctl --user daemon-reload && systemctl --user enable --now podman-.service # Requires linger: sudo loginctl enable-linger $USER [Unit] Description=Podman Compose: agentchat After=network-online.target Wants=network-online.target StartLimitIntervalSec=300 StartLimitBurst=3 [Service] Type=oneshot WorkingDirectory=%h/Server/Agentchat ExecStart=/usr/bin/podman compose up -d ExecStop=/usr/bin/podman compose down RemainAfterExit=yes TimeoutStartSec=300 TimeoutStopSec=60 Restart=on-failure RestartSec=30 [Install] WantedBy=default.target