修改sapp service.d 文件命名和删除service.d conf文件中的冗余的配置项

This commit is contained in:
fumingwei
2021-05-28 09:19:38 +08:00
parent 1c0e171a36
commit 98fb678936
4 changed files with 16 additions and 14 deletions

View File

@@ -88,16 +88,25 @@
dest: /opt/tsg/tsg-os-provision/templates/gdev.conf.j2
tags: template
- name: "sapp: service adapts runtimes"
- name: "Create /usr/lib/systemd/system/sapp.service.d/ directory if it does not exist"
file:
path: "{{ item }}"
state: directory
mode: '0755'
with_items:
- /usr/lib/systemd/system/sapp.service.d
- name: "sapp: service override timeoutsec"
template:
src: "{{ role_path }}/templates/adapt_runtimes.j2"
dest: /usr/lib/systemd/system/sapp.service.d/
src: "{{ role_path }}/templates/service_override_timeoutsec.conf.j2"
dest: /usr/lib/systemd/system/sapp.service.d/service_override_timeoutsec.conf
mode: 0644
- name: "copy memory limit file to sapp.service.d"
copy:
src: "{{ role_path }}/files/memory.conf"
dest: /usr/lib/systemd/system/sapp.service.d/
src: "{{ role_path }}/templates/service_override_memsw_limit.conf.j2"
dest: /usr/lib/systemd/system/sapp.service.d/service_override_memsw_limit.conf
mode: 0644

View File

@@ -1,9 +0,0 @@
[Unit]
Requires=mrzcpd.service
After=mrzcpd.service
[Service]
TimeoutSec=900s
RestartSec=10s
LimitNOFILE=524288
LimitCORE=0
WatchdogSec=10s

View File

@@ -0,0 +1,2 @@
[Service]
TimeoutSec=900s