github RevolutionTR/keenetic-zapret-manager v26.4.8.1
v26.4.8.1 - Otomatik Güncelleme Sonrası Çift Telegram Botu Düzeltmesi

latest release: v26.4.8.2
7 hours ago

🚀 v26.4.8.1 - Otomatik Güncelleme Sonrası Çift Telegram Botu Düzeltmesi

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ışan tgbot_watchdog geç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 ps ile gerçek daemon PID'i tespit edilerek PID dosyasına yazılıyor (CGI tg_start ile aynı pattern)

⚙️ 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.1 - Duplicate Telegram Bot Fix After Auto-Update

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_watchdog running 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 ps and writes it to the PID file (same pattern as CGI tg_start)

⚙️ 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

Don't miss a new keenetic-zapret-manager release

NewReleases is sending notifications on new releases.