2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat(frp): 添加运行用户设置功能 (#1193)

* Initial plan

* feat(frp): 添加运行用户设置功能

Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>

* refactor(frp): 优化正则表达式和用户/组更新逻辑

Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>

* 完成 FRP 运行用户设置功能

Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>
This commit is contained in:
Copilot
2026-01-08 23:27:54 +08:00
committed by GitHub
parent 89ace2360c
commit cff71af26b
6 changed files with 171 additions and 9 deletions

View File

@@ -84,3 +84,9 @@ func LogClear(name string) error {
_, err := shell.Execf("journalctl --vacuum-time=1s -u '%s'", name)
return err
}
// DaemonReload 重载 systemd 服务配置
func DaemonReload() error {
_, err := shell.ExecfWithTimeout(2*time.Minute, "systemctl daemon-reload")
return err
}