Files
crypto_news/restart_bot.sh

11 lines
248 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
cd ~/ict-crypto-bot
source venv/bin/activate
rm -f logs/bot.log
nohup env SMC_CREDIT=0 python main.py --paper > logs/bot.log 2>&1 &
echo "Bot started PID: $!"
sleep 8
tail -30 logs/bot.log