From 36c25a17c00deb4a7cd3df1b1298da73f261a158 Mon Sep 17 00:00:00 2001 From: lulzette Date: Thu, 15 Dec 2022 19:54:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20systemd=20unit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bb37d39..3736207 100644 --- a/README.md +++ b/README.md @@ -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 - ``` \ No newline at end of file