From 7c407e0d1f85f3f5fbade77c95e6451e43b7b1f7 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 3 Aug 2023 08:34:51 +0300 Subject: [PATCH] update crontab example --- config/crontab.txt | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/config/crontab.txt b/config/crontab.txt index 2cf32f1..9e35161 100644 --- a/config/crontab.txt +++ b/config/crontab.txt @@ -1,20 +1,7 @@ @reboot searchd @reboot indexer --all --rotate -# Required only with MEGAcmd/FTP storage enabled -# -# config/app.php.txt -# -# CRAWL_PAGE_MIME_SNAP_MEGA -# -# MEGA_FTP_HOST -# MEGA_FTP_PORT -# MEGA_FTP_DIRECTORY -# -# @reboot /usr/bin/mega-cmd-server -# @reboot /usr/bin/mega-ftp /REMOTE_PATH_TO/yggo/storage/snap +30 0 * * * indexer --all --rotate -5 0 * * * indexer --all --rotate - -0 1 * * * cd /YGGo/crontab && php cleaner.php > /dev/null 2>&1 -* 2-23 * * * cd /YGGo/crontab && php crawler.php > /dev/null 2>&1 \ No newline at end of file +0 0 * * * /usr/bin/php /{PATH}/YGGo/crontab/cleaner.php >> /{PATH}/cleaner.log 2>&1 +* 1-23 * * * /usr/bin/php /{PATH}/YGGo/crontab/crawler.php >> /{PATH}/crawler.log 2>&1 \ No newline at end of file