From a0e42c5d467bc4b8c85009ee2d0a92b8ef559fe0 Mon Sep 17 00:00:00 2001 From: Anton Skalkin Date: Fri, 3 Jun 2022 21:07:21 +0400 Subject: [PATCH] fix unit --- systemd/telegram.bot.news.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systemd/telegram.bot.news.service b/systemd/telegram.bot.news.service index 55fc943..14f306e 100644 --- a/systemd/telegram.bot.news.service +++ b/systemd/telegram.bot.news.service @@ -3,4 +3,5 @@ Description=Telegram Bot for News [Service] Type=oneshot -ExecStart=/opt/TelegramNewsBot/virt_env/bin/python /opt/TelegramNewsBot/main.py \ No newline at end of file +WorkingDirectory=/opt/TelegramNewsBot/ +ExecStart=virt_env/bin/python main.py \ No newline at end of file