docker build -t rsi .
docker run -d rsi
SYMBOLS_FILE_PATH=/root/rsi.s1/data/symbols_v2.txt
systemctl status systemd-journald
Edit sudo nano /etc/systemd/journald.conf
[Journal]
Storage=persistent
Restart
sudo systemctl restart systemd-journald
Create service in /etc/systemd/system/
sudo nano /etc/systemd/system/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
sudo systemctl start rsi.service
sudo systemctl enable rsi.service
sudo systemctl status rsi.service
sudo systemctl restart rsi.service
journalctl -u rsi.service