mirror of
https://git.kiwifarms.net/mint/fedi-block-api.git
synced 2024-10-22 23:19:07 +00:00
added service for block fetching
This commit is contained in:
parent
bde8234a90
commit
4bcd85ef86
2 changed files with 16 additions and 1 deletions
|
@ -26,7 +26,12 @@ systemctl start mastodon_api
|
|||
|
||||
Fill the database with blocks.
|
||||
|
||||
`python fetch_blocks.py`
|
||||
Make sure to edit the `User` and `WorkingDirectory` of the service file accordingly.
|
||||
|
||||
```
|
||||
sudo cp services/fetch_blocks.service /etc/systemd/system
|
||||
systemctl start fetch_blocks
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
|
|
10
services/fetch_blocks.service
Normal file
10
services/fetch_blocks.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Fetch blocks
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
User=
|
||||
WorkingDirectory=/fedi-block-api
|
||||
ExecStart=python fetch_blocks.py
|
Loading…
Reference in a new issue