Move check alive to be in script, not cron.

This commit is contained in:
me committed 2021-02-15 18:58:06 -06:00
1 parent 60c8ce0af7
commit fdd1db85e5
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@
user: mfn
name: "Start {{ item.name }}"
minute: "*/5"
job: "[[ ps -ef | grep -v 'grep' | grep -c '{{ item.command }}' == '0' ]] && {{ item.command }}"
job: "{{ item.command }}"
state: present
disabled: "{{ not(item.enabled) }}"
loop: "{{ miners }}"
+3 -1
View File
@@ -118,7 +118,9 @@
whoami
pwd
time {{ nanominer_exec }} {{ nanominer_config }}
{{ check_alive_start }}{{ nanominer_script }}{{ check_alive_end }} {
time {{ nanominer_exec }} {{ nanominer_config }}
}
marker: '{mark}'
marker_begin: "#!{{ bash_exec.stdout }}"