Skip to content

feat: add managed daemon mode for tunn#1

Merged
strandnerd merged 4 commits intomainfrom
feat/daemon-mode
Sep 24, 2025
Merged

feat: add managed daemon mode for tunn#1
strandnerd merged 4 commits intomainfrom
feat/daemon-mode

Conversation

@strandnerd
Copy link
Copy Markdown
Owner

Summary

  • introduce a background daemon that supervises all configured tunnels and exposes an IPC socket for CLI commands
  • add tunn start -d to spawn the daemon, write PID/socket/log files under XDG runtime (or ~/.cache/tunn), and validate startup health before returning
  • add tunn status to query the daemon, rendering a live ANSI dashboard in terminals or plain text for scripts
  • add tunn stop to request a graceful daemon shutdown, waiting briefly for completion
  • reuse the existing tunnel manager with a new notifier hook so both foreground and daemon modes share runtime logic and per-port status tracking
  • document the new workflow (daemon lifecycle commands, single dependency on gopkg.in/yaml.v3, SSH-based execution, supported platforms) and add an AGENTS.md contributor guide

@strandnerd strandnerd merged commit c2478f8 into main Sep 24, 2025
@strandnerd strandnerd deleted the feat/daemon-mode branch September 24, 2025 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant