From 225b7e359c756b46baba9b5a57b1ef4ae33c5277 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 7 Dec 2022 11:53:42 -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 ded7978d9..e305ab303 100644 --- a/salt/strelka/init.sls +++ b/salt/strelka/init.sls @@ -185,7 +185,7 @@ filecheck_oldcronremoval: filecheck_run: cron.present: - - name: 'pgrep -f "python3 /opt/so/conf/strelka/filecheck" &> /dev/null || python3 /opt/so/conf/strelka/filecheck >> /opt/so/log/strelka/filecheck_stdout.log 2>&1 &' + - name: 'ps -ef | grep filecheck | grep -v grep &> /dev/null || python3 /opt/so/conf/strelka/filecheck >> /opt/so/log/strelka/filecheck_stdout.log 2>&1 &' - user: {{ filecheck_runas }} filcheck_history_clean: