Commit 2682f534 authored by nanahira's avatar nanahira

put cron in user

parent 88d6435c
Pipeline #9243 passed with stages
in 19 seconds
......@@ -8,6 +8,6 @@ COPY ./reindex.cron /etc/cron.d/reindex.cron
COPY ./manticore.conf /etc/manticoresearch/manticore.conf
ENV CHECKING_FILE=posts_minute.spi
RUN crontab /etc/cron.d/reindex.cron
RUN crontab /etc/cron.d/reindex.cron -u manticore
VOLUME /var/lib/manticore
0 4 * * * /bin/bash -c '/usr/bin/flock -xE 0 /tmp/reindex.lock /usr/local/bin/gosu manticore /usr/bin/indexer --rotate threads posts' > /var/log/reindex-daily.log 2>&1
* * * * * /bin/bash -c '/usr/bin/flock -nxE 0 /tmp/reindex.lock /usr/local/bin/gosu manticore /usr/bin/indexer --rotate threads_minute posts_minute' > /var/log/reindex-minute.log 2>&1
0 4 * * * /bin/bash -c '/usr/bin/flock -xE 0 /tmp/reindex.lock /usr/bin/indexer --rotate threads posts' > /var/log/reindex-daily.log 2>&1
* * * * * /bin/bash -c '/usr/bin/flock -nxE 0 /tmp/reindex.lock /usr/bin/indexer --rotate threads_minute posts_minute' > /var/log/reindex-minute.log 2>&1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment