cloudflared-mirror/cmd/cloudflared/access
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
..
carrier.go Add --pidfile support with signal-aware cleanup to cloudflared access tcp 2026-02-13 13:35:07 -05:00
carrier_test.go Add --pidfile support with signal-aware cleanup to cloudflared access tcp 2026-02-13 13:35:07 -05:00
cmd.go Add --pidfile support with signal-aware cleanup to cloudflared access tcp 2026-02-13 13:35:07 -05:00
validation.go TUN-7628: Correct Host parsing for Access 2023-07-25 09:33:11 -07:00
validation_test.go TUN-7628: Correct Host parsing for Access 2023-07-25 09:33:11 -07:00