S
S
Sergey_mur2018-04-06 17:23:58
Debian
Sergey_mur, 2018-04-06 17:23:58

CRON is not processing the task. What to do?

There is a script with the content:

#!/bin/bash
/opt/elasticsearch-curator/curator /opt/elasticsearch-curator/actions/delete_tcrypt.yml;
tail -n 10 /var/log/curator/curator.log | grep delete_indices >> /var/log/curator/tcrypt.log;

I insert the task into crontab -e in the form:
* * * * *  /opt/elasticsearch-curator/scripts/tcrypt.sh;

bash shell.
From the script, only the last line is executed. The launch of the curator is completely ignored. All rights are. The task is placed in the root table.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey_mur, 2018-04-07
@Sergey_mur

It turned out that the curator is strange and works only from his folder and it doesn’t matter that the path is absolute. added cd to the folder in the scripts and it worked.

A
Ainur Valiev, 2018-04-07
@vaajnur

curator without krone starts?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question