mirror of
https://github.com/andrey271192/keenetic-dns-routes.git
synced 2026-09-20 14:42:01 +00:00
Background autossh kept exiting because of two things: 1. autossh's gate-time guard (default 30s): if first ssh dies "too fast" autossh treats it as failure and gives up. Setting GATETIME=0 disables it. 2. nohup+subshell on BusyBox doesn't always fully detach. Try setsid first (proper new session, no controlling tty) and fall back to nohup subshell. Also write autossh diagnostics to /tmp/kdns_tun.log and dump it on failure so the user can see the real reason instead of just "не запустился". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>