update cronjobs first, the kill filecheck

This commit is contained in:
m0duspwnens
2023-08-08 17:28:14 -04:00
parent 6da2f117f2
commit 553b758c61

View File

@@ -78,15 +78,6 @@ filecheck_script:
- group: 939
- mode: 755
filecheck_restart:
cmd.run:
- name: pkill -f "python3 /opt/so/conf/strelka/filecheck"
- hide_output: True
- success_retcodes: [0,1]
- onchanges:
- file: filecheck_script
- file: filecheck_conf
{% if GLOBALS.md_engine == 'ZEEK' %}
filecheck_run_socore:
@@ -115,6 +106,15 @@ remove_filecheck_run_socore:
{% endif %}
filecheck_restart:
cmd.run:
- name: pkill -f "python3 /opt/so/conf/strelka/filecheck"
- hide_output: True
- success_retcodes: [0,1]
- onchanges:
- file: filecheck_script
- file: filecheck_conf
filcheck_history_clean:
cron.present:
- name: '/usr/bin/find /nsm/strelka/history/ -type f -mtime +2 -exec rm {} + > /dev/null 2>&1'