Поправил systemd unit
This commit is contained in:
parent
4deb7dd49b
commit
36c25a17c0
@ -25,18 +25,17 @@
|
||||
# systemd unit для запуска бота
|
||||
|
||||
```commandline
|
||||
# /etc/systemd/system/twitch-bot.service
|
||||
# /etc/systemd/system/tgbot-inter.service
|
||||
[Unit]
|
||||
Description=Twitch bot notifier
|
||||
Description=Twitch bot notifier (STREAMER)
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=30s
|
||||
Type=simple
|
||||
WorkingDir=/opt/tgbot-streamer
|
||||
ExecStart=/bin/bash -c 'source /opt/twitch-tgbot/venv/bin/activate && /opt/twitch-tgbot/main.py --prod'
|
||||
WorkingDirectory=/opt/tgbot-STREAMER
|
||||
ExecStart=/bin/bash -c '/opt/twitch-tgbot/venv/bin/python3 /opt/twitch-tgbot/main.py'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
```
|
Loading…
Reference in New Issue
Block a user