forge
Explore
Log in

Don't you dare go Hollow

Retry a failed compose-up instead of staying down

Browse files at this commit

e01a4fae5a724e82de2d7eeb2688897bf5ea7255Ahmet Kaan GümüşParent: a79354b
  • 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.
deploy/hezarfen_zeka_compose.servicemodified+7 -0
@@ -46,6 +46,13 @@ Wants=network-online.target
46 [Service]46 [Service]
47 Type=oneshot47 Type=oneshot
48 RemainAfterExit=yes48 RemainAfterExit=yes
49+# Basarisiz ExecStart (acilista compose up) 1500s sonra yeniden denenir, biri
50+# basarili olana kadar. systemd 259 Type=oneshot icin Restart= uygular. Bagli
51+# `up` kullanilmaz: podman-compose 1.6 yalniz SIGINT'te down calistirir ve
52+# konteyner baslatma hatasinda 0 ile cikar. 1500s, en uzun deploy saglik
53+# kapisindan (960s) uzundur; arka plan denemesi geri almayi ezmez.
54+Restart=on-failure
55+RestartSec=1500s
49 WorkingDirectory=%h/hezarfen_zeka56 WorkingDirectory=%h/hezarfen_zeka
50 # Operatorun ayar dosyasi unit'in ORTAMINA girer (0600; satirlar duz57 # Operatorun ayar dosyasi unit'in ORTAMINA girer (0600; satirlar duz
51 # KEY=value, systemd kabuk genisletmesi YAPMAZ). Dosya yoksa unit baslamaz --58 # KEY=value, systemd kabuk genisletmesi YAPMAZ). Dosya yoksa unit baslamaz --