From 3917ca8d4f218c4b0ca3fb2b61edd310c4e2fddb Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 23 Apr 2023 09:07:06 +0300 Subject: [PATCH] move crontab configuration example to the config directory --- README.md | 16 +--------------- config/crontab.txt | 7 +++++++ 2 files changed, 8 insertions(+), 15 deletions(-) create mode 100644 config/crontab.txt diff --git a/README.md b/README.md index a53fa21..1a9d242 100644 --- a/README.md +++ b/README.md @@ -37,21 +37,7 @@ sphinxsearch * Install [Sphinx Search Server](https://sphinxsearch.com) * Configuration examples are placed at `/config` folder * Make sure `/storage` folder is writable -* Set up the `/crontab` scripts by following [examples](https://github.com/YGGverse/YGGo#crontab) - -#### Configuration - -##### Crontab - -``` -@reboot searchd -@reboot indexer --all --rotate - -0 * * * * indexer --all --rotate - -0 0 * * * cd /YGGo/crontab && php cleaner.php > /dev/null 2>&1 -* * * * * cd /YGGo/crontab && php crawler.php > /dev/null 2>&1 -``` +* Set up the `/crontab` scripts by following [example](https://github.com/YGGverse/YGGo/blob/main/config/crontab.txt) #### JSON API diff --git a/config/crontab.txt b/config/crontab.txt new file mode 100644 index 0000000..00243d2 --- /dev/null +++ b/config/crontab.txt @@ -0,0 +1,7 @@ +@reboot searchd +@reboot indexer --all --rotate + +0 * * * * indexer --all --rotate + +0 0 * * * cd /YGGo/crontab && php cleaner.php > /dev/null 2>&1 +* * * * * cd /YGGo/crontab && php crawler.php > /dev/null 2>&1 \ No newline at end of file