Commit e823120d authored by nanahira's avatar nanahira

cwd

parent ba8c9ec7
Pipeline #9245 passed with stages
in 27 seconds
......@@ -35,7 +35,7 @@ _main() {
# allow the container to be started with `--user`
if [ "$(id -u)" = '0' ]; then
find /var/lib/manticore /var/log/manticore /var/run/manticore /etc/manticoresearch \! -user manticore -exec chown manticore '{}' +
rm -rf /tmp/reindex.lock
rm -rf /var/run/reindex.lock
cron
exec gosu manticore "$0" "$@"
fi
......
0 4 * * * /bin/bash -c '/usr/bin/flock -xE 0 /tmp/reindex.lock /usr/bin/indexer --rotate threads posts' > /var/log/manticore/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/manticore/reindex-minute.log 2>&1
0 4 * * * /bin/bash -c 'cd /var/lib/manticore && /usr/bin/flock -xE 0 /var/run/reindex.lock /usr/bin/indexer --rotate threads posts' > /var/log/manticore/reindex-daily.log 2>&1
* * * * * /bin/bash -c 'cd /var/lib/manticore && /usr/bin/flock -nxE 0 /var/run/reindex.lock /usr/bin/indexer --rotate threads_minute posts_minute' > /var/log/manticore/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