Files
crypto_news/reset_and_restart.sh

12 lines
284 B
Bash
Raw Normal View History

2026-03-20 07:49:42 +09:00
#!/bin/bash
pkill -f "main.py --paper" 2>/dev/null
sleep 2
rm -f ~/ict-crypto-bot/data/trading.db
echo "DB reset"
cd ~/ict-crypto-bot
source venv/bin/activate
nohup env SMC_CREDIT=0 python main.py --paper > logs/bot.log 2>&1 &
echo "Bot started PID: $!"
sleep 8
tail -40 logs/bot.log