From 67f312e5ef2554e33fc7ac73c6a88ade3649713e Mon Sep 17 00:00:00 2001 From: fumingwei Date: Wed, 12 Oct 2022 19:51:09 +0800 Subject: [PATCH] =?UTF-8?q?feature:=E8=AE=BE=E7=BD=AEmrzcpd=20service=20Ti?= =?UTF-8?q?meoutStartSec=E5=92=8CTimeoutStopSec=E4=B8=BA300s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/mrzcpd/tasks/main.yml | 6 ++++++ .../roles/mrzcpd/templates/service_add_timeout_setting.conf | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 ansible/roles/mrzcpd/templates/service_add_timeout_setting.conf diff --git a/ansible/roles/mrzcpd/tasks/main.yml b/ansible/roles/mrzcpd/tasks/main.yml index 800ef605..de52cd8d 100644 --- a/ansible/roles/mrzcpd/tasks/main.yml +++ b/ansible/roles/mrzcpd/tasks/main.yml @@ -140,6 +140,12 @@ mode: 0644 when: runtime_env == 'TSG-X-P0906' +- name: "copy add_timeout_setting to mrzcpd.service.d" + copy: + src: "{{ role_path }}/templates/service_add_timeout_setting.conf" + dest: /usr/lib/systemd/system/mrzcpd.service.d/ + mode: 0644 + ##################### mrzcpd ##################### - name: "enable mrenv" systemd: diff --git a/ansible/roles/mrzcpd/templates/service_add_timeout_setting.conf b/ansible/roles/mrzcpd/templates/service_add_timeout_setting.conf new file mode 100644 index 00000000..c5bf9f67 --- /dev/null +++ b/ansible/roles/mrzcpd/templates/service_add_timeout_setting.conf @@ -0,0 +1,3 @@ +[Service] +TimeoutStartSec=300 +TimeoutStopSec=300