#!/bin/bash
cd /opt/ozymandias

screen -S ozymandias -X quit 2>/dev/null
screen -S gex -X quit 2>/dev/null
screen -S funding -X quit 2>/dev/null
screen -S crowd -X quit 2>/dev/null
screen -S unlock -X quit 2>/dev/null
screen -S liq -X quit 2>/dev/null

sleep 2

screen -dmS ozymandias python3 /opt/ozymandias/ozymandias.py --watch --interval 120
screen -dmS gex python3 /opt/ozymandias/gex_monitor.py
screen -dmS funding python3 /opt/ozymandias/funding_monitor.py --watch
screen -dmS crowd python3 /opt/ozymandias/crowd_scanner.py --watch
screen -dmS unlock python3 /opt/ozymandias/unlock_monitor.py --watch
screen -dmS liq python3 /opt/ozymandias/btc_liquidation_collector.py

echo "All monitors started:"
screen -ls
