forge
Explore
Log in

Don't you dare go Hollow

Retry a failed compose-up instead of staying down

Browse files at this commit

ca9a7bd9f052070ce3a0f38976d0e78b178120e7Ahmet Kaan GümüşParent: d40a041
  • fix
    • retry a failed compose-up instead of staying down
Show full message
fix: retry a failed compose-up instead of staying down

Keep Type=oneshot and `up -d`. systemd 259 honors Restart=on-failure
for oneshot (measured: the restart counter advanced). Attached
`podman compose up` does not: podman-compose 1.6 only runs down on
SIGINT, and a container start failure exits 0, so Type=simple
Restart= would never see the failure. RestartSec=1500s is past the
longest deploy health gate (rag, 960s), so a background retry cannot
undo a rollback.
Local-Gate: 0a84e919fa002808d101bedb4a8f7278b9c60b99 (1411 passed, 32s)
deploy/hezarfen_rag_compose.servicemodified+7 -0
@@ -64,6 +64,13 @@ Wants=network-online.target
64 [Service]64 [Service]
65 Type=oneshot65 Type=oneshot
66 RemainAfterExit=yes66 RemainAfterExit=yes
67+# Başarısız ExecStart (açılışta compose up) 1500s sonra yeniden denenir, biri
68+# başarılı olana kadar. systemd 259 Type=oneshot için Restart= uygular. Bağlı
69+# `up` kullanılmaz: podman-compose 1.6 yalnız SIGINT'te down çalıştırır ve
70+# konteyner başlatma hatasında 0 ile çıkar. 1500s, en uzun deploy sağlık
71+# kapısından (960s) uzundur; arka plan denemesi geri almayı ezmez.
72+Restart=on-failure
73+RestartSec=1500s
67 WorkingDirectory=%h/hezarfen_rag74 WorkingDirectory=%h/hezarfen_rag
68 # Operatörün ayar dosyası unit'in ORTAMINA girer (0600). Dosya yoksa unit75 # Operatörün ayar dosyası unit'in ORTAMINA girer (0600). Dosya yoksa unit
69 # BAŞLAMAZ — sessiz bir varsayılana düşmez. Anahtarlar (LLM_API_KEY,76 # BAŞLAMAZ — sessiz bir varsayılana düşmez. Anahtarlar (LLM_API_KEY,