Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
openEuler-Advisor
提交
8e67f35b
O
openEuler-Advisor
项目概览
openeuler
/
openEuler-Advisor
通知
35
Star
4
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openEuler-Advisor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8e67f35b
编写于
7月 20, 2020
作者:
Y
Yiru Wang Mac
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
http-timeout and harakiri become configurable
上级
57ae8887
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
13 addition
and
6 deletion
+13
-6
packageship/packageship/package.ini
packageship/packageship/package.ini
+6
-2
packageship/packageship/pkgshipd
packageship/packageship/pkgshipd
+7
-4
未找到文件。
packageship/packageship/package.ini
浏览文件 @
8e67f35b
...
...
@@ -62,8 +62,12 @@ log_level=INFO
log_name
=
log_info.log
[UWSGI]
; uwsgi log file path
daemonize
=
/var/log/uwsgi.log
; The data size transferred from back to forth
buffer-size
=
65536
; HTTP Connection time
http-timeout
=
600
; Server response time
harakiri
=
600
packageship/packageship/pkgshipd
浏览文件 @
8e67f35b
...
...
@@ -18,13 +18,16 @@ function create_config_file(){
echo
"[INFO] config type is:
$service
"
daemonize
=
$(
get_config
"
$service
"
"daemonize"
)
buffer_size
=
$(
get_config
"
$service
"
"buffer-size"
)
http_timeout
=
$(
get_config
"
$service
"
"http-timeout"
)
harakiri
=
$(
get_config
"
$service
"
"harakiri"
)
wsgi_file_path
=
$(
find /usr/lib/
-name
"packageship"
)
if
[
$service
=
"manage"
-o
$service
=
"all"
]
;
then
write_port
=
$(
get_config
"
$service
"
"write_port"
)
write_ip_addr
=
$(
get_config
"
$service
"
"write_ip_addr"
)
if
[[
-z
"
$daemonize
"
]]
||
[[
-z
"
$buffer_size
"
]]
||
[[
-z
"
$write_ip_addr
"
]]
||
[[
-z
"
$write_port
"
]]
;
then
if
[[
-z
"
$daemonize
"
]]
||
[[
-z
"
$buffer_size
"
]]
||
[[
-z
"
$write_ip_addr
"
]]
||
[[
-z
"
$http_timeout
"
]]
||
[[
-z
"
$harakiri
"
]]
||
[[
-z
"
$write_port
"
]]
;
then
echo
"[ERROR] CAN NOT find all config name in:
$SYS_PATH
/package.ini, Please check the file"
echo
"[ERROR] The following config name is needed: daemonize, buffer
_size, write_port and write_ip_addr
"
echo
"[ERROR] The following config name is needed: daemonize, buffer
-size, write_port, write_ip_addr, harakiri and http-timeout
"
exit
1
fi
if
[
-z
"
$wsgi_file_path
"
]
;
then
...
...
@@ -39,8 +42,8 @@ wsgi-file=$wsgi_file_path/manage.py
callable=app
buffer-size=
$buffer_size
pidfile=
$OUT_PATH
/manage.pid
http-timeout=
600
harakiri=
600
http-timeout=
$http_timeout
harakiri=
$harakiri
daemonize=
$daemonize
"
>
$OUT_PATH
/manage.ini
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录