From 399396bfc3a1e2180f7397b4fc4e7217c762171a Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 15 Feb 2021 19:57:14 -0600 Subject: [PATCH] Ignore cron calling the job with sh. --- facts/miner/system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facts/miner/system.yml b/facts/miner/system.yml index 5849c16..901deeb 100644 --- a/facts/miner/system.yml +++ b/facts/miner/system.yml @@ -6,7 +6,7 @@ - name: Miner | Facts | System | Global set_fact: file_server: 'ling@leet' - check_alive_start: "[[ `ps -ef | grep -v 'grep' | grep -v $$ | grep -c '" + check_alive_start: "[[ `ps -ef | grep -v 'grep' | grep -v '/bin/sh -c' | grep -v $$ | grep -c '" check_alive_end: "'` == '0' ]] &&"