为了添加sapp zlog原始日志输出,sapp service 增加Environment 配置项

This commit is contained in:
fumingwei
2021-06-08 15:19:29 +08:00
parent 4235998c21
commit da317aac80
2 changed files with 7 additions and 1 deletions

View File

@@ -90,7 +90,6 @@
with_items:
- /usr/lib/systemd/system/sapp.service.d
- name: "sapp: service override timeoutsec"
template:
src: "{{ role_path }}/templates/service_override_timeoutsec.conf.j2"
@@ -103,6 +102,11 @@
dest: /usr/lib/systemd/system/sapp.service.d/service_override_memsw_limit.conf
mode: 0644
- name: "copy env conf to sapp.service.d"
copy:
src: "{{ role_path }}/templates/service_env.conf.j2"
dest: /usr/lib/systemd/system/sapp.service.d/service_env.conf
mode: 0644
##################### sapp #####################
- name: "enable sapp"

View File

@@ -0,0 +1,2 @@
[Service]
Environment="ZLOG_PROFILE_ERROR=/tmp/zlog.error.log"