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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user