Skip to content

alexandersazonof/rsi.s1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSI s.1


Docker

docker build -t rsi .
docker run -d rsi

Create .env

SYMBOLS_FILE_PATH=/root/rsi.s1/data/symbols_v2.txt

Logs

systemctl status systemd-journald

Edit sudo nano /etc/systemd/journald.conf

[Journal]
Storage=persistent

Restart

sudo systemctl restart systemd-journald

Service

Create service in /etc/systemd/system/

sudo nano /etc/systemd/system/rsi.service

rsi.service

[Unit]
Description=Py script
After=network.target

[Service]
Environment="SYMBOLS_FILE_PATH=/root/rsi.s1/data/symbols_v2.txt"
ExecStart=/root/rsi.s1/.venv/bin/python3 /root/rsi.s1/main.py
Restart=on-failure

[Install]
WantedBy=multi-user.target

Run

sudo systemctl start rsi.service
sudo systemctl enable rsi.service

Status

sudo systemctl status rsi.service

Restart

sudo systemctl restart rsi.service

Logs

journalctl -u rsi.service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published