添加脚本
This commit is contained in:
parent
6e6b1fa5d2
commit
29c39ad1b7
@ -13,7 +13,7 @@ type ChatConfig struct {
|
||||
}
|
||||
|
||||
func initLog() {
|
||||
log.Open("chat.log", log.DebugL)
|
||||
log.Open("chat/chat.log", log.DebugL)
|
||||
}
|
||||
|
||||
func LoadConfig(GitCommit, GitBranch, BuildDate string) {
|
||||
|
@ -22,7 +22,7 @@ type GateConfig struct {
|
||||
}
|
||||
|
||||
func initLog() {
|
||||
log.Open("gate.log", log.DebugL)
|
||||
log.Open("gate/gate.log", log.DebugL)
|
||||
}
|
||||
|
||||
func LoadConfig(GitCommit, GitBranch, BuildDate string) {
|
||||
|
@ -13,7 +13,7 @@ type LoginConfig struct {
|
||||
}
|
||||
|
||||
func initLog() {
|
||||
log.Open("login.log", log.DebugL)
|
||||
log.Open("login/login.log", log.DebugL)
|
||||
}
|
||||
|
||||
func LoadConfig(GitCommit, GitBranch, BuildDate string) {
|
||||
|
27
server/supervisor.conf
Normal file
27
server/supervisor.conf
Normal file
@ -0,0 +1,27 @@
|
||||
; /etc/supervisor/conf.d/your_program.conf
|
||||
[program:gate]
|
||||
command=/home/ubuntu/game/gate -redis_host="114.132.124.145" -redis_port="6379" -redis_password="fox379@@zyxi" -sid=1 -num=1 -v_mod="dev" ; 完整命令参数
|
||||
directory=/home/ubuntu/game ; 程序工作目录
|
||||
user=ubuntu ; 运行用户
|
||||
autostart=true ; 随 Supervisor 启动
|
||||
autorestart=true ; 自动重启
|
||||
startsecs=10 ; 启动等待时间
|
||||
startretries=3 ; 启动重试次数
|
||||
|
||||
[program:login]
|
||||
command=/home/ubuntu/game/login -redis_host="114.132.124.145" -redis_port="6379" -redis_password="fox379@@zyxi" -sid=1 -num=1 -v_mod="dev" ; 完整命令参数
|
||||
directory=/home/ubuntu/game ; 程序工作目录
|
||||
user=ubuntu ; 运行用户
|
||||
autostart=true ; 随 Supervisor 启动
|
||||
autorestart=true ; 自动重启
|
||||
startsecs=10 ; 启动等待时间
|
||||
startretries=3 ; 启动重试次数
|
||||
|
||||
[program:chat]
|
||||
command=/home/ubuntu/game/chat -redis_host="114.132.124.145" -redis_port="6379" -redis_password="fox379@@zyxi" -sid=1 -num=1 -v_mod="dev" ; 完整命令参数
|
||||
directory=/home/ubuntu/game ; 程序工作目录
|
||||
user=ubuntu ; 运行用户
|
||||
autostart=true ; 随 Supervisor 启动
|
||||
autorestart=true ; 自动重启
|
||||
startsecs=10 ; 启动等待时间
|
||||
startretries=3 ; 启动重试次数
|
Loading…
x
Reference in New Issue
Block a user