Skip to content

Commit

Permalink
Update supervisor.go
Browse files Browse the repository at this point in the history
Linux下游戏路径也包含PalServer,需要守护PalServer.sh
  • Loading branch information
Tardis07 authored Jan 28, 2024
1 parent 45d4caf commit eaf712d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eaf712d

Please sign in to comment.