From e01a4fae5a724e82de2d7eeb2688897bf5ea7255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 23 Sep 2026 06:58:50 +0300 Subject: [PATCH] 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.service | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/hezarfen_zeka_compose.service b/deploy/hezarfen_zeka_compose.service index c28c57c..d23b98a 100644 --- a/deploy/hezarfen_zeka_compose.service +++ b/deploy/hezarfen_zeka_compose.service @@ -46,6 +46,13 @@ Wants=network-online.target [Service] Type=oneshot RemainAfterExit=yes +# Basarisiz ExecStart (acilista compose up) 1500s sonra yeniden denenir, biri +# basarili olana kadar. systemd 259 Type=oneshot icin Restart= uygular. Bagli +# `up` kullanilmaz: podman-compose 1.6 yalniz SIGINT'te down calistirir ve +# konteyner baslatma hatasinda 0 ile cikar. 1500s, en uzun deploy saglik +# kapisindan (960s) uzundur; arka plan denemesi geri almayi ezmez. +Restart=on-failure +RestartSec=1500s WorkingDirectory=%h/hezarfen_zeka # Operatorun ayar dosyasi unit'in ORTAMINA girer (0600; satirlar duz # KEY=value, systemd kabuk genisletmesi YAPMAZ). Dosya yoksa unit baslamaz --