mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
prevent multiple script instances using file lock
This commit is contained in:
@@ -153,7 +153,7 @@ so_fleetagent_monitor:
|
|||||||
{% else %}
|
{% else %}
|
||||||
cron.absent:
|
cron.absent:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- name: /usr/sbin/so-elastic-agent-monitor
|
- name: /bin/flock -n /opt/so/log/agents/agent-monitor.lock /usr/sbin/so-elastic-agent-monitor
|
||||||
- identifier: so_fleetagent_monitor
|
- identifier: so_fleetagent_monitor
|
||||||
- user: root
|
- user: root
|
||||||
- minute: '*/{{ MANAGERMERGED.agent_monitoring.config.run_interval }}'
|
- minute: '*/{{ MANAGERMERGED.agent_monitoring.config.run_interval }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user