Retry a failed compose-up instead of staying down
Browse files at this commita039b605eb75fb249c46e4c1d126a32a0984a1a8Parent: 372f8f3- fix
- retry a failed compose-up instead of staying down
1 changed file +7 -0
deploy/hezarfen_rule_based_chatbot_compose.servicemodified+7 -0
| @@ -28,6 +28,13 @@ Wants=network-online.target | ||
| 28 | 28 | [Service] |
| 29 | 29 | Type=oneshot |
| 30 | 30 | RemainAfterExit=yes |
| 31 | +# Başarısız ExecStart (açılışta compose up) 1500s sonra yeniden denenir, biri | |
| 32 | +# başarılı olana kadar. systemd 259 Type=oneshot için Restart= uygular. Bağlı | |
| 33 | +# `up` kullanılmaz: podman-compose 1.6 yalnız SIGINT'te down çalıştırır ve | |
| 34 | +# konteyner başlatma hatasında 0 ile çıkar. 1500s, en uzun deploy sağlık | |
| 35 | +# kapısından (960s) uzundur; arka plan denemesi geri almayı ezmez. | |
| 36 | +Restart=on-failure | |
| 37 | +RestartSec=1500s | |
| 31 | 38 | WorkingDirectory=%h/hezarfen_rule_based_chatbot |
| 32 | 39 | # İKİ `--env-file` YASAK. podman-compose 1.6.0 `--env-file`ı TEK DEĞER sayar |
| 33 | 40 | # (podman_compose.py:2941-2946) ve verildiğinde YALNIZCA SONUNCUSUNU okur: iki |