[PR #3511] [MERGED] frpc: support stop command #4765

Closed
opened 2026-05-05 14:48:20 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3511
Author: @fatedier
Created: 6/30/2023
Status: Merged
Merged: 6/30/2023
Merged by: @fatedier

Base: devHead: release


📝 Commits (1)

  • 4d0b6e7 frpc: support stop command

📊 Changes

8 files changed (+155 additions, -16 deletions)

View changed files

📝 Release.md (+5 -0)
📝 client/admin.go (+1 -0)
📝 client/admin_api.go (+21 -4)
📝 cmd/frpc/sub/root.go (+3 -8)
cmd/frpc/sub/stop.go (+84 -0)
📝 server/dashboard_api.go (+4 -4)
📝 test/e2e/basic/client.go (+28 -0)
📝 test/e2e/pkg/sdk/client/client.go (+9 -0)

📄 Description

Summary

🤖 Generated by Copilot at 835bbf4

This pull request adds a new feature and an improvement to frpc. The new feature is a stop subcommand and an /api/stop endpoint that allow the user to gracefully shut down the frpc service. The improvement is a simplification of the signal handling and service running logic in the frpc command. The pull request also fixes some comments and documentation issues in the code.

WHY

Fix #2670


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/3511 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 6/30/2023 **Status:** ✅ Merged **Merged:** 6/30/2023 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `release` --- ### 📝 Commits (1) - [`4d0b6e7`](https://github.com/fatedier/frp/commit/4d0b6e72e2546cf0a55f5ee97a285a672606b554) frpc: support stop command ### 📊 Changes **8 files changed** (+155 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `Release.md` (+5 -0) 📝 `client/admin.go` (+1 -0) 📝 `client/admin_api.go` (+21 -4) 📝 `cmd/frpc/sub/root.go` (+3 -8) ➕ `cmd/frpc/sub/stop.go` (+84 -0) 📝 `server/dashboard_api.go` (+4 -4) 📝 `test/e2e/basic/client.go` (+28 -0) 📝 `test/e2e/pkg/sdk/client/client.go` (+9 -0) </details> ### 📄 Description ### Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 835bbf4</samp> This pull request adds a new feature and an improvement to frpc. The new feature is a `stop` subcommand and an `/api/stop` endpoint that allow the user to gracefully shut down the frpc service. The improvement is a simplification of the signal handling and service running logic in the `frpc` command. The pull request also fixes some comments and documentation issues in the code. ### WHY Fix #2670 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:48:20 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4765
No description provided.