added service for block fetching
This commit is contained in:
parent
bde8234a90
commit
4bcd85ef86
@ -26,7 +26,12 @@ systemctl start mastodon_api
|
|||||||
|
|
||||||
Fill the database with blocks.
|
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
|
## 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…
x
Reference in New Issue
Block a user