Merge branch 'update-systemd-service' of framasky/masto-image-bot into master
This commit is contained in:
commit
995370b7ea
10
README.md
10
README.md
|
@ -73,4 +73,14 @@ User=masto-bot
|
||||||
TimeoutSec=15
|
TimeoutSec=15
|
||||||
WorkingDirectory=/home/masto-bot/
|
WorkingDirectory=/home/masto-bot/
|
||||||
ExecStart=/usr/bin/python3 bot.py --stream --source=local
|
ExecStart=/usr/bin/python3 bot.py --stream --source=local
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
Then do
|
||||||
|
```
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable bot.service
|
||||||
|
systemctl start bot.service
|
||||||
```
|
```
|
||||||
|
|
Reference in a new issue