mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 16:06:51 +08:00
1
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/google/shlex"
|
||||||
"github.com/lzh-1625/go_process_manager/config"
|
"github.com/lzh-1625/go_process_manager/config"
|
||||||
"github.com/lzh-1625/go_process_manager/internal/app/eum"
|
"github.com/lzh-1625/go_process_manager/internal/app/eum"
|
||||||
"github.com/lzh-1625/go_process_manager/internal/app/model"
|
"github.com/lzh-1625/go_process_manager/internal/app/model"
|
||||||
@@ -141,7 +142,7 @@ func (p *ProcessPty) doOnInit() {
|
|||||||
func NewProcessPty(pconfig model.Process) *ProcessBase {
|
func NewProcessPty(pconfig model.Process) *ProcessBase {
|
||||||
p := ProcessBase{
|
p := ProcessBase{
|
||||||
Name: pconfig.Name,
|
Name: pconfig.Name,
|
||||||
StartCommand: strings.Split(pconfig.Cmd, " "),
|
StartCommand: utils.UnwarpIgnore(shlex.Split(pconfig.Cmd)),
|
||||||
WorkDir: pconfig.Cwd,
|
WorkDir: pconfig.Cwd,
|
||||||
}
|
}
|
||||||
p.Process = &ProcessPty{ProcessBase: &p}
|
p.Process = &ProcessPty{ProcessBase: &p}
|
||||||
|
Reference in New Issue
Block a user