Skip to content

Commit

Permalink
extra: add linux service for endless harvesting
Browse files Browse the repository at this point in the history
  • Loading branch information
miku committed Mar 21, 2024
1 parent 49cc36e commit 8312b35
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions extra/linux/metha.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Harvest all OAI endpoints continuously

[Service]
ExecStart=/bin/bash -c 'metha-sync -list | shuf | parallel -j 128 -I {} "metha-sync -base-dir /home/tir/.cache/metha {}"'
User=tir
Group=tir
RuntimeMaxSec=300s
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit 8312b35

Please sign in to comment.