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

@ -1,5 +1,7 @@
#!/bin/bash #! /bin/bash
echo "starting the bot" 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

View File

@ -1,4 +1,4 @@
#!/bin/bash #! /bin/bash
echo "shutting down the bot" echo "shutting down the bot"