Skip to content
Snippets Groups Projects
Commit 566d5d5d authored by Zitnik, Anze's avatar Zitnik, Anze
Browse files

Increasing timeout for wazuh manger service startup.

parent 1974fa65
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,15 @@
- { src: 'custom-integration', dest: '/var/ossec/integrations/' }
- { src: 'custom-integration.py', dest: '/var/ossec/integrations/' }
- name: Check if timeout value is already inserted in systemctl service config
shell: grep -q TimeoutStartSec /usr/lib/systemd/system/wazuh-manager.service
register: grep_timeout
- name: Increase systemctl service startup timeout
shell: sed -i 's/\\[Service\\]/\\[Service\\]\nTimeoutStartSec=300/' /usr/lib/systemd/system/wazuh-manager.service
become: yes
when: "grep_timeout.rc > 0"
- name: Restart wazuh-manager
service:
name: wazuh-manager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment