Run the crawler as mirrormanager and not as root.

This commit is contained in:
Adrian Reber 2015-04-23 19:12:15 +00:00
parent 622df024d4
commit 0b608dd24a
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# run the crawler twice a day
# logs sent to /var/log/mirrormanager/crawler.log and crawl/* by default
# 32GB of RAM is not enough for 75 threads, 40 seems to work so far
0 */12 * * * root /usr/bin/mm2_crawler --threads 40 > /dev/null 2>&1
0 */12 * * * mirrormanager /usr/bin/mm2_crawler --threads 40 > /dev/null 2>&1

View file

@ -23,7 +23,7 @@
- name: install MM configuration file
template: src={{ roles }}/mirrormanager/frontend2/templates/mirrormanager2.cfg
dest=/etc/mirrormanager/mirrormanager2.cfg
mode=600
mode=600 owner=mirrormanager group=mirrormanager
tags:
- config