Commit Graph

8 Commits

Author SHA1 Message Date
Clément Désiles a8545fc501 fix(podman): use Type=notify + service-container so systemd sees pod crashes
The previous Type=oneshot + RemainAfterExit=true pattern made systemd
freeze pod units in 'active (exited)' as soon as 'podman play kube'
returned, so crash-looping containers were invisible to
'systemctl --user --failed' and Restart=on-failure never fired.

For every podman-pod role (immich, fdroid, ntfy, gitea, qfieldcloud,
unifi, matrix, uptime_kuma):

- switch units to Type=notify + NotifyAccess=all
- run 'podman kube play --service-container=true' so the unit's main
  PID stays alive as long as the pod
- use 'podman kube down' for ExecStop
- add TimeoutStartSec=180 to cover slow first-boot image pulls

Pod manifests: flip every container's restartPolicy from Always to
Never. systemd is now the single owner of the restart loop: container
exits -> pod dies -> service container dies -> unit fails ->
Restart=on-failure restarts everything cleanly. With Always, podman
retried internally and hid the failure from systemd.

CLAUDE.md updated to document the new canonical template and the
'restartPolicy: Never' requirement.
2026-05-29 21:49:13 +02:00
Clément Désiles 1d00432061 fix: podman integration 2026-05-29 21:24:58 +02:00
Clément Désiles 229f9f6b5d fix: user systemd 2025-12-23 09:08:43 +01:00
Clément Désiles 10f4eb5817 fix: podman connect 2025-12-21 22:25:57 +01:00
Clément Désiles 10e58eb990 fix: podman user called by systemd 2025-12-20 23:14:26 +01:00
Clément Désiles 787c171f65 feat: new services and fixes 2025-12-20 20:52:24 +01:00
Clément Désiles ebeb6d5c6b feat: forward tcp traffic easily 2025-12-15 22:14:46 +01:00
Clément Désiles 3ab48b93a6 feat: introduce immich 2025-11-14 00:23:03 +01:00