Поправил 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 для запуска бота # systemd unit для запуска бота
```commandline ```commandline
# /etc/systemd/system/twitch-bot.service # /etc/systemd/system/tgbot-inter.service
[Unit] [Unit]
Description=Twitch bot notifier Description=Twitch bot notifier (STREAMER)
[Service] [Service]
Restart=always Restart=always
RestartSec=30s RestartSec=30s
Type=simple Type=simple
WorkingDir=/opt/tgbot-streamer WorkingDirectory=/opt/tgbot-STREAMER
ExecStart=/bin/bash -c 'source /opt/twitch-tgbot/venv/bin/activate && /opt/twitch-tgbot/main.py --prod' ExecStart=/bin/bash -c '/opt/twitch-tgbot/venv/bin/python3 /opt/twitch-tgbot/main.py'
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
``` ```