上传rpcx启动类型
This commit is contained in:
parent
d318cdf003
commit
024c6d2076
@ -206,7 +206,7 @@ func stop() {
|
||||
}
|
||||
}
|
||||
}
|
||||
log.Errorf("stop succ!")
|
||||
log.Infof("stop succ!")
|
||||
}
|
||||
|
||||
///转换区服配置到服务配置
|
||||
@ -294,12 +294,12 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
|
||||
case comm.Service_Worker: //业务服务
|
||||
sseting.Id = fmt.Sprintf("%s_%s%d", config.AreaId, comm.Service_Worker, id)
|
||||
sseting.Type = comm.Service_Worker
|
||||
sseting.Sys["rpcx"]["RpcxStartType"] = 0
|
||||
sseting.Sys["rpcx"]["RpcxStartType"] = 2
|
||||
break
|
||||
case comm.Service_Mainte: //维护服务
|
||||
sseting.Id = fmt.Sprintf("%s_%s", config.AreaId, comm.Service_Mainte)
|
||||
sseting.Type = comm.Service_Mainte
|
||||
sseting.Sys["rpcx"]["RpcxStartType"] = 0
|
||||
sseting.Sys["rpcx"]["RpcxStartType"] = 2
|
||||
sseting.Modules["web"] = map[string]interface{}{
|
||||
"WebDir": "./dist",
|
||||
"Port": lport,
|
||||
|
Loading…
Reference in New Issue
Block a user