Retry a failed compose-up instead of staying down
Browse files at this commite01a4fae5a724e82de2d7eeb2688897bf5ea7255Parent: a79354b- fix
- retry a failed compose-up instead of staying down
1 changed file +7 -0
deploy/hezarfen_zeka_compose.servicemodified+7 -0
| @@ -46,6 +46,13 @@ Wants=network-online.target | |||
| 46 | [Service] | 46 | [Service] |
| 47 | Type=oneshot | 47 | Type=oneshot |
| 48 | RemainAfterExit=yes | 48 | 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_zeka | 56 | WorkingDirectory=%h/hezarfen_zeka |
| 50 | # Operatorun ayar dosyasi unit'in ORTAMINA girer (0600; satirlar duz | 57 | # 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 -- |