🚀 v26.4.8.2 - Otomatik Güncelleme Sonrası Çift Telegram Botu Düzeltmesi v2
Sürüm Tipi: Hotfix
Odak: Otomatik güncelleme sonrası Telegram botunun çift başlaması ve çift mesaj sorunu giderildi
🐛 Hata Düzeltmeleri
- Çift Telegram mesajı sorunu düzeltildi — otomatik güncelleme (HM_AUTOUPDATE_MODE=2) sonrası bot yeniden başlatılırken iki ayrı instance oluşuyordu
- Kök neden: Bot subshell içinde (
(... &)) başlatılıyordu;$!subshell'in PID'ini yazıyordu, daemon'ın değil. Subshell hemen ölünce PID dosyası geçersiz kalıyordu. Aynı loop turunda çalışantgbot_watchdoggeçersiz PID'i görüp botu bir kez daha başlatıyordu - Düzeltme: Subshell başladıktan sonra 1 saniye bekleniyor, ardından
psile gerçek daemon PID'i tespit edilerek PID dosyasına yazılıyor (CGItg_startile aynı pattern)
- Kök neden: Bot subshell içinde (
⚙️ Notlar
- Bu sorun yalnızca
HM_AUTOUPDATE_MODE=2(Oto Kur) aktifken tetikleniyordu - Manuel güncelleme (Menü 10) etkilenmiyordu
- Mevcut kurulumlar güvenle güncellenebilir
🚀 v26.4.8.2 - Duplicate Telegram Bot Fix After Auto-Update v2
Release Type: Hotfix
Focus: Fixed double Telegram bot instance and duplicate messages after auto-update
🐛 Bug Fixes
- Duplicate Telegram messages fixed — after auto-update (HM_AUTOUPDATE_MODE=2), two bot instances were being started
- Root cause: Bot was started inside a subshell (
(... &));$!captured the subshell PID, not the daemon PID. When the subshell exited immediately, the PID file became invalid.tgbot_watchdogrunning in the same loop iteration saw the invalid PID and started the bot a second time - Fix: After the subshell starts, waits 1 second then detects the real daemon PID via
psand writes it to the PID file (same pattern as CGItg_start)
- Root cause: Bot was started inside a subshell (
⚙️ Notes
- This issue only triggered when
HM_AUTOUPDATE_MODE=2(Auto Install) was active - Manual updates (Menu 10) were not affected
- Existing installations can be safely updated