From 553b758c61e87909f704b9159c13d30022ea3ac4 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 8 Aug 2023 17:28:14 -0400 Subject: [PATCH] update cronjobs first, the kill filecheck --- salt/strelka/filestream/config.sls | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/salt/strelka/filestream/config.sls b/salt/strelka/filestream/config.sls index 9c0ef1357..193241f32 100644 --- a/salt/strelka/filestream/config.sls +++ b/salt/strelka/filestream/config.sls @@ -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'