Ignore cron calling the job with sh.

This commit is contained in:
Hyperling 2021-02-15 19:57:14 -06:00
parent 08e64f1c97
commit 399396bfc3

View File

@ -6,7 +6,7 @@
- name: Miner | Facts | System | Global - name: Miner | Facts | System | Global
set_fact: set_fact:
file_server: 'ling@leet' 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' ]] &&" check_alive_end: "'` == '0' ]] &&"