diff --git a/salt/soc/init.sls b/salt/soc/init.sls index 2a7346d88..e7137f17e 100644 --- a/salt/soc/init.sls +++ b/salt/soc/init.sls @@ -88,7 +88,7 @@ socusersroles: salt-relay: cron.present: - - name: 'pgrep -f "/opt/so/saltstack/default/salt/soc/files/bin/salt-relay.sh" &> /dev/null || /opt/so/saltstack/default/salt/soc/files/bin/salt-relay.sh >> /opt/so/log/soc/salt-relay.log 2>&1 &' + - name: 'ps -ef | grep salt-relay.sh | grep -v grep &> /dev/null || /opt/so/saltstack/default/salt/soc/files/bin/salt-relay.sh >> /opt/so/log/soc/salt-relay.log 2>&1 &' so-soc: docker_container.running: 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: