From eaf712d68db9067a9a39129bb047672b8e614c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=B6=E8=8C=B6=E8=AF=B4?= Date: Sun, 28 Jan 2024 14:22:56 +0800 Subject: [PATCH] Update supervisor.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linux下游戏路径也包含PalServer,需要守护PalServer.sh --- supervisor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor.go b/supervisor.go index 7e60b02..ac8a1b1 100644 --- a/supervisor.go +++ b/supervisor.go @@ -42,7 +42,7 @@ func (s *Supervisor) isServiceRunning() bool { cmd = exec.Command("tasklist") } else { // Unix/Linux,假设'pgrep'可用 - cmd = exec.Command("pgrep", "-f", s.Config.ProcessName) + cmd = exec.Command("pgrep", "-f", s.Config.ProcessName+".sh") } var out bytes.Buffer