mm2_crawler: The cron script shouldn't terminate the cron script
The previous version just pkill'ed itself. This now actually works. Signed-off-by: Adrian Reber <adrian@lisas.de>
This commit is contained in:
parent
87f40b5247
commit
e4cf0b3fd0
1 changed files with 1 additions and 1 deletions
|
@ -11,4 +11,4 @@
|
|||
# wait for 5 minutes to give the crawler a chance to shutdown. After that the
|
||||
# crawler is killed. To make sure we only end the cron started crawler we look
|
||||
# for the following process "/usr/bin/python /usr/bin/mm2_crawler --threads 25".
|
||||
0 */12 * * * mirrormanager [ "`hostname -s`" == "mm-crawler02" ] && sleep 2h; pkill -14 -f "/usr/bin/python /usr/bin/mm2_crawler --threads 25"; sleep 5m; pkill -9 -f "/usr/bin/python /usr/bin/mm2_crawler --threads 25"; /usr/bin/mm2_crawler --threads 25 --timeout-minutes 180 `/usr/local/bin/run_crawler.sh 2` > /dev/null 2>&1
|
||||
0 */12 * * * mirrormanager [ "`hostname -s`" == "mm-crawler02" ] && sleep 2h; pkill -14 -f "^/usr/bin/python /usr/bin/mm2_crawler --threads 25"; sleep 5m; pkill -9 -f "^/usr/bin/python /usr/bin/mm2_crawler --threads 25"; /usr/bin/mm2_crawler --threads 25 --timeout-minutes 180 `/usr/local/bin/run_crawler.sh 2` > /dev/null 2>&1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue