geminispace.info

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/geminispace.info.git
Log | Files | Refs | README | LICENSE

commit f5ce631246ac96c7a063d55adb1ddf024b5970b3
parent 0b0b33610a729350a379c0ec09ee29fe04e589b4
Author: René Wagner <rwagner@rw-net.de>
Date:   Sat, 20 Mar 2021 20:58:58 +0100

hack: index update in separate dir

Diffstat:
Minfra/gus-crawl.service | 6+++---
Minfra/gus-crawl.timer | 8++++----
Minfra/gus-index.service | 8++++----
Minfra/update_index.sh | 2+-
Mserve/templates/about.gmi | 2+-
5 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/infra/gus-crawl.service b/infra/gus-crawl.service @@ -1,4 +1,4 @@ -# /etc/systemd/system/gus-crawl.service +# /etc/systemd/system/gus.service [Unit] Description=Gemini Universal Search - Crawler @@ -7,7 +7,7 @@ Description=Gemini Universal Search - Crawler User=gus Group=gus Type=oneshot -WorkingDirectory=/home/gus/code/gus +WorkingDirectory=/home/gus/ Environment="PYTHONUNBUFFERED=1" ExecStart=/home/gus/.poetry/bin/poetry run crawl -ExecStopPost=systemctl start gus-index --no-block +ExecStopPost=sudo systemctl start gus-index --no-block diff --git a/infra/gus-crawl.timer b/infra/gus-crawl.timer @@ -1,12 +1,12 @@ [Unit] -Description=Gemini Universal Search - Crawler Timer +Description= ConditionVirtualization=!container [Timer] -OnCalendar=Sat 18:00:00 -AccuracySec=1h +OnCalendar=*-*-1/3 08:00:00 +AccuracySec=15m Persistent=true -RandomizedDelaySec=6000 +RandomizedDelaySec=600 [Install] WantedBy=timers.target diff --git a/infra/gus-index.service b/infra/gus-index.service @@ -1,4 +1,4 @@ -# /etc/systemd/system/gus-index.service +# /etc/systemd/system/gus.service [Unit] Description=Gemini Universal Search - Indexer @@ -7,7 +7,7 @@ Description=Gemini Universal Search - Indexer User=gus Group=gus Type=oneshot -WorkingDirectory=/home/gus/code/gus +WorkingDirectory=/home/gus Environment="PYTHONUNBUFFERED=1" -ExecStart=/home/gus/.poetry/bin/poetry run build_index -ExecStopPost=systemctl restart gus +ExecStart=/bin/bash -c /home/gus/infra/update_index.sh +ExecStopPost=sudo systemctl restart gus diff --git a/infra/update_index.sh b/infra/update_index.sh @@ -1,5 +1,5 @@ cp -r /home/gus/index /home/gus/index.new -/home/gus/.poetry/bin/poetry run build_index +/home/gus/.poetry/bin/poetry run build_index -d rm -rf /home/gus/index.old mv /home/gus/index /home/gus/index.old mv /home/gus/index.new /home/gus/index diff --git a/serve/templates/about.gmi b/serve/templates/about.gmi @@ -13,7 +13,7 @@ geminispace.info is NOT a fork, all changes in regard to crawling, indexing and ### index updates Index updates run currently three times a week and happen completely unattended: -every sunday, tuesday and thursday starting around 01:00 UTC. +every sunday and wednesday starting around 07:00 UTC. ### contact the admin(s)