mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Avoid unnecessary Zeek processes in Import Mode
This commit is contained in:
@@ -11,13 +11,9 @@
|
|||||||
{% if grains.id.split('_')|last == 'import' or not ENABLED %}
|
{% if grains.id.split('_')|last == 'import' or not ENABLED %}
|
||||||
{% do ZEEKOPTIONS.update({'start': False}) %}
|
{% do ZEEKOPTIONS.update({'start': False}) %}
|
||||||
{% do ZEEKOPTIONS.update({'pl_cron_state': 'absent'}) %}
|
{% do ZEEKOPTIONS.update({'pl_cron_state': 'absent'}) %}
|
||||||
|
{% do ZEEKOPTIONS.update({'status': 'absent'}) %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% do ZEEKOPTIONS.update({'start': True}) %}
|
{% do ZEEKOPTIONS.update({'start': True}) %}
|
||||||
{% do ZEEKOPTIONS.update({'pl_cron_state': 'present'}) %}
|
{% do ZEEKOPTIONS.update({'pl_cron_state': 'present'}) %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not ENABLED %}
|
|
||||||
{% do ZEEKOPTIONS.update({'status': 'absent'}) %}
|
|
||||||
{% else %}
|
|
||||||
{% do ZEEKOPTIONS.update({'status': 'running'}) %}
|
{% do ZEEKOPTIONS.update({'status': 'running'}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user