add deamon service

This commit is contained in:
Dmitry Afanasyev 2022-08-08 17:24:17 +03:00
parent a54a3809fd
commit f4ded6ae10
2 changed files with 5 additions and 3 deletions

View File

@ -2,4 +2,6 @@
echo "starting the bot"
cd /opt/mosgortrans && poetry shell && python main.py
cd /opt/mosgortrans \
&& source /home/balsh/.cache/pypoetry/virtualenvs/mosgortrans-3eZxMcY3-py3.10/bin/activate \
&& python main.py