Add files via upload

pre created file for the service
pull/83/head
Danyway 2022-02-01 00:03:46 +01:00 zatwierdzone przez GitHub
rodzic 71cba20428
commit 1d74c06c17
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 25 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,7 @@
cd /etc/systemd/system/
nano telegrambotservice.service
systemctl stop telegrambotservice.service
systemctl start telegrambotservice.service
systemctl status telegrambotservice.service

Wyświetl plik

@ -0,0 +1,5 @@
#!/bin/bash
source /root/TradingView-Webhook-Bot/bin/activate && cd /root/TradingView-Webhook-Bot
python main.py >> /root/TradingView-Webhook-Bot/logs/TelegramBot.log 2>&1
#python main.py

Wyświetl plik

@ -0,0 +1,13 @@
[Unit]
After=network.service
Description=Telegram Bot Service
[Service]
Type=simple
# WorkingDirectory=/code/python/myapp
ExecStart=/root/startbot.sh
# User=do-user
[Install]
WantedBy=multi-user.target
# WantedBy=default.target