mirror of
https://github.com/smittix/intercept.git
synced 2026-07-24 08:58:09 -07:00
Add startup cleanup for stale RTL-SDR processes
Kills any orphaned dump1090, rtl_adsb, rtl_433, multimon-ng, rtl_fm processes on app startup to prevent "device busy" errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12645,12 +12645,26 @@ def monitor_iridium(process):
|
|||||||
print(f"[Iridium] Monitor error: {e}")
|
print(f"[Iridium] Monitor error: {e}")
|
||||||
|
|
||||||
|
|
||||||
|
def cleanup_stale_processes():
|
||||||
|
"""Kill any stale processes from previous runs."""
|
||||||
|
processes_to_kill = ['dump1090', 'rtl_adsb', 'rtl_433', 'multimon-ng', 'rtl_fm']
|
||||||
|
for proc_name in processes_to_kill:
|
||||||
|
try:
|
||||||
|
subprocess.run(['pkill', '-9', proc_name], capture_output=True)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print("=" * 50)
|
print("=" * 50)
|
||||||
print(" INTERCEPT // Signal Intelligence")
|
print(" INTERCEPT // Signal Intelligence")
|
||||||
print(" Pager / 433MHz / Aircraft / Satellite / WiFi / BT")
|
print(" Pager / 433MHz / Aircraft / Satellite / WiFi / BT")
|
||||||
print("=" * 50)
|
print("=" * 50)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
# Clean up any stale processes from previous runs
|
||||||
|
cleanup_stale_processes()
|
||||||
|
|
||||||
print("Open http://localhost:5050 in your browser")
|
print("Open http://localhost:5050 in your browser")
|
||||||
print()
|
print()
|
||||||
print("Press Ctrl+C to stop")
|
print("Press Ctrl+C to stop")
|
||||||
|
|||||||
Reference in New Issue
Block a user