Поправил systemd unit

This commit is contained in:
lulzette 2022-12-15 19:54:00 +03:00
parent 4deb7dd49b
commit 36c25a17c0

View File

@ -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
```