Retry a failed compose-up instead of staying down
Browse files at this commitca9a7bd9f052070ce3a0f38976d0e78b178120e7Parent: d40a041- fix
- retry a failed compose-up instead of staying down
1 changed file +7 -0
deploy/hezarfen_rag_compose.servicemodified+7 -0
| @@ -64,6 +64,13 @@ Wants=network-online.target | |||
| 64 | [Service] | 64 | [Service] |
| 65 | Type=oneshot | 65 | Type=oneshot |
| 66 | RemainAfterExit=yes | 66 | 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_rag | 74 | WorkingDirectory=%h/hezarfen_rag |
| 68 | # Operatörün ayar dosyası unit'in ORTAMINA girer (0600). Dosya yoksa unit | 75 | # 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, |