Set mfn up for using bash expressions in cron.
This commit is contained in:
1 parent
8cc014d063
commit
29fbf12b62
3 files changed
+10
-1
No files matched your search
@@ -19,4 +19,5 @@
|
||||
- video
|
||||
- render
|
||||
append: yes
|
||||
shell: "{{ bash_exec.stdout }}"
|
||||
register: user_mfn
|
||||
@@ -26,7 +26,7 @@
|
||||
user: mfn
|
||||
name: "Start {{ item.name }}"
|
||||
minute: "*/5"
|
||||
job: "ps -ef | grep '{{ item.command }}' | grep -v 'grep' && {{ item.command }}"
|
||||
job: "[[ ps -ef | grep -v 'grep'| grep -c '{{ item.command }}' == '0' ]] && {{ item.command }}"
|
||||
state: present
|
||||
disabled: "{{ not(item.enabled) }}"
|
||||
loop: "{{ miners }}"
|
||||
Reference in new issue
Block a user