From fde33de0309af40e07be715f359be92d3ff30383 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 7 Dec 2022 11:51:49 -0500 Subject: [PATCH] Use original style due to pgrep conflict with cron --- salt/strelka/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/strelka/init.sls b/salt/strelka/init.sls index 860fe6f02..8e9448c95 100644 --- a/salt/strelka/init.sls +++ b/salt/strelka/init.sls @@ -154,7 +154,7 @@ filecheck_restart: filecheck_run: cron.present: - - name: 'pgrep -f "python3 /opt/so/conf/strelka/filecheck" &> /dev/null >> /opt/so/log/strelka/filecheck_stdout.log 2>&1 &' + - name: 'ps -ef | grep filecheck | grep -v grep &> /dev/null >> /opt/so/log/strelka/filecheck_stdout.log 2>&1 &' - user: {{ filecheck_runas }} filcheck_history_clean: