diff --git a/server/client/server/login.go b/server/client/server/login.go index 0335482..2c92d6a 100644 --- a/server/client/server/login.go +++ b/server/client/server/login.go @@ -6,7 +6,7 @@ import ( ) func (s *ClientService) login() { - log.DebugF("user:% ready login", s.username) + //log.DebugF("user:%v ready login", s.username) s.SendMsg(pb.ServiceTypeId_STI_Login, int32(pb.MsgId_C2SUserLoginId), &pb.C2SUserLogin{ Username: s.username, Password: s.password, diff --git a/server/supervisor.conf b/server/supervisor.conf index 7f62bfe..69bc3c6 100644 --- a/server/supervisor.conf +++ b/server/supervisor.conf @@ -4,7 +4,7 @@ command=/home/ubuntu/game/gate -redis_host="114.132.124.145" -redis_port="6379" directory=/home/ubuntu/game ; 程序工作目录 user=ubuntu ; 运行用户 autostart=true ; 随 Supervisor 启动 -autorestart=true ; 自动重启 +autorestart=false ; 自动重启 startsecs=10 ; 启动等待时间 startretries=3 ; 启动重试次数 @@ -13,7 +13,7 @@ command=/home/ubuntu/game/login -redis_host="114.132.124.145" -redis_port="6379" directory=/home/ubuntu/game ; 程序工作目录 user=ubuntu ; 运行用户 autostart=true ; 随 Supervisor 启动 -autorestart=true ; 自动重启 +autorestart=false ; 自动重启 startsecs=10 ; 启动等待时间 startretries=3 ; 启动重试次数 @@ -22,6 +22,15 @@ command=/home/ubuntu/game/chat -redis_host="114.132.124.145" -redis_port="6379" directory=/home/ubuntu/game ; 程序工作目录 user=ubuntu ; 运行用户 autostart=true ; 随 Supervisor 启动 -autorestart=true ; 自动重启 +autorestart=false ; 自动重启 +startsecs=10 ; 启动等待时间 +startretries=3 ; 启动重试次数 + +[program:client] +command=/home/ubuntu/game/client -redis_host="114.132.124.145" -redis_port="6379" -redis_password="fox379@@zyxi" -sid=1 -num=1000 -v_mod="dev" ; 完整命令参数 +directory=/home/ubuntu/game ; 程序工作目录 +user=ubuntu ; 运行用户 +autostart=true ; 随 Supervisor 启动 +autorestart=false ; 自动重启 startsecs=10 ; 启动等待时间 startretries=3 ; 启动重试次数