kopia lustrzana https://github.com/fabston/TradingView-Webhook-Bot
rodzic
71cba20428
commit
1d74c06c17
|
@ -0,0 +1,7 @@
|
||||||
|
cd /etc/systemd/system/
|
||||||
|
|
||||||
|
nano telegrambotservice.service
|
||||||
|
|
||||||
|
systemctl stop telegrambotservice.service
|
||||||
|
systemctl start telegrambotservice.service
|
||||||
|
systemctl status telegrambotservice.service
|
|
@ -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
|
|
@ -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
|
Ładowanie…
Reference in New Issue