执行uname和systemctl时增加命令完整路径

This commit is contained in:
刘祥超
2022-09-30 09:40:38 +08:00
parent 177afafe12
commit 30d8edbdcf
2 changed files with 2 additions and 2 deletions

View File

@@ -366,7 +366,7 @@ func (this *NodeQueue) StopNode(nodeId int64) error {
}
// 我们先尝试Systemd停止
_, _, _ = installer.client.Exec("systemctl stop edge-node")
_, _, _ = installer.client.Exec("/usr/bin/systemctl stop edge-node")
// 执行stop
_, stderr, err := installer.client.Exec(exe + " stop")