Files
bilive/scan.sh
2025-03-11 14:33:02 +08:00

10 lines
423 B
Bash
Executable File

# kill the previous scanSegments process
kill -9 $(ps aux | grep 'src.burn.scan' | grep -v grep | awk '{print $2}')
# start the scanSegments process
nohup python -m src.burn.scan > $BILIVE_PATH/logs/runtime/scan-$(date +%Y%m%d-%H%M%S).log 2>&1 &
# Check if the last command was successful
if [ $? -eq 0 ]; then
echo "success"
else
echo "An error occurred while starting scanSegments. Check the logs for details."
fi