diff --git a/salt/strelka/init.sls b/salt/strelka/init.sls index b372e6f6c..502cb2bb7 100644 --- a/salt/strelka/init.sls +++ b/salt/strelka/init.sls @@ -170,6 +170,12 @@ filecheck_script: - group: 939 - mode: 755 +filecheck_restart: + cmd.run: + - name: pkill -f "python3 /opt/so/conf/strelka/filecheck" + - onchanges: + - file: filecheck_script + filecheck_run: cron.present: - name: 'ps -ef | grep filecheck | grep -v grep || python3 /opt/so/conf/strelka/filecheck >> /opt/so/log/strelka/filecheck_stdout.log 2>&1 &'