From f4ded6ae10745e06ea17e716dda0b730d5983564 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Mon, 8 Aug 2022 17:24:17 +0300 Subject: [PATCH] add deamon service --- scripts/start-bot.sh | 6 ++++-- scripts/stop-bot.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/start-bot.sh b/scripts/start-bot.sh index 45923c2..680a0d6 100644 --- a/scripts/start-bot.sh +++ b/scripts/start-bot.sh @@ -1,5 +1,7 @@ -#!/bin/bash +#! /bin/bash echo "starting the bot" -cd /opt/mosgortrans && poetry shell && python main.py \ No newline at end of file +cd /opt/mosgortrans \ +&& source /home/balsh/.cache/pypoetry/virtualenvs/mosgortrans-3eZxMcY3-py3.10/bin/activate \ +&& python main.py \ No newline at end of file diff --git a/scripts/stop-bot.sh b/scripts/stop-bot.sh index e5d3954..483d571 100644 --- a/scripts/stop-bot.sh +++ b/scripts/stop-bot.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#! /bin/bash echo "shutting down the bot"