mirror of
https://github.com/timerring/bilive.git
synced 2026-05-07 22:05:55 +08:00
10 lines
423 B
Bash
Executable File
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 |