8 lines
233 B
Bash
Executable File
8 lines
233 B
Bash
Executable File
#!/bin/bash
|
|
# MiroFish auto-restart
|
|
if ! ss -tlnp | grep -q ":5001"; then
|
|
cd /opt/mirofish && nohup python3 run.py >> /tmp/mirofish.log 2>&1 &
|
|
sleep 3
|
|
ss -tlnp | grep -q ":5001" && echo "MiroFish UP" || echo "MiroFish FAIL"
|
|
fi
|