cloudflared-mirror/cmd
Travis Crumb 348c48c02d Add --pidfile support with signal-aware cleanup to cloudflared access tcp
Add --pidfile flag to the access tcp subcommand (also applies to rdp,
ssh, and smb aliases). This writes the process ID to a file after
startup and removes it on exit.

Signal handling (SIGTERM/SIGINT) ensures the PID file is cleaned up
when the process is killed, not just on graceful shutdown.

Includes unit tests for writePidFile and removePidFile.

Closes #723
2026-02-13 13:35:07 -05:00
..
cloudflared Add --pidfile support with signal-aware cleanup to cloudflared access tcp 2026-02-13 13:35:07 -05:00