为了添加sapp zlog原始日志输出,sapp service 增加Environment 配置项
This commit is contained in:
@@ -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"
|
||||
|
||||
2
ansible/roles/sapp/templates/service_env.conf.j2
Normal file
2
ansible/roles/sapp/templates/service_env.conf.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Environment="ZLOG_PROFILE_ERROR=/tmp/zlog.error.log"
|
||||
Reference in New Issue
Block a user