1
0
mirror of https://shylinux.com/x/icebergs synced 2025-06-26 18:37:29 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-16 20:23:57 +08:00
parent 59159a897a
commit ee93cfe5f4

View File

@ -161,21 +161,20 @@ func _dream_start(m *ice.Message, name string) {
}
func _dream_check(m *ice.Message, name string) string {
p := path.Join(ice.USR_LOCAL_WORK, name)
if p := path.Join(p, ice.VAR_LOG_ICE_PID); nfs.Exists(m, p) {
if pid := m.Cmdx(nfs.CAT, p, kit.Dict(ice.MSG_USERROLE, aaa.TECH)); pid != "" && nfs.Exists(m, "/proc/"+pid) {
if pp := path.Join(p, ice.VAR_LOG_ICE_PID); nfs.Exists(m, pp) {
for i := 0; i < 5; i++ {
if pid := m.Cmdx(nfs.CAT, pp, kit.Dict(ice.MSG_USERROLE, aaa.TECH)); pid != "" && nfs.Exists(m, "/proc/"+pid) {
m.Info("already exists %v", pid)
return ""
} else if gdb.SignalProcess(m, pid) {
m.Info("already exists %v", pid)
return ""
}
for i := 0; i < 5; i++ {
if m.Cmd(SPACE, name).Length() > 0 {
} else if m.Cmd(SPACE, name).Length() > 0 {
m.Info("already exists %v", name)
return ""
} else {
return p
}
m.Sleep300ms()
}
return ""
}
return p
}