Skip to content

Commit

Permalink
refactor: simplified startup scripts (#155)
Browse files Browse the repository at this point in the history
fix #152
  • Loading branch information
timerring authored Jan 18, 2025
1 parent 338c618 commit 4a5f2b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion record.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export no_proxy=*
host=0.0.0.0
port=2233

kill -9 $(pgrep -f blrec)
kill -9 $(ps aux | grep '[b]lrec' | awk '{print $2}')
nohup blrec -c $config --open --host $host --port $port > $BILIVE_PATH/logs/blrec.log 2>&1 &
echo "blrec run success!"
2 changes: 1 addition & 1 deletion scan.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# kill the previous scanSegments process
kill -9 $(pgrep -f src.burn.scan)
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/scanLog/scan-$(date +%Y%m%d-%H%M%S).log 2>&1 &
# Check if the last command was successful
Expand Down
4 changes: 2 additions & 2 deletions upload.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kill the previous scanSegments process
kill -9 $(pgrep -f upload)
kill -9 $(pgrep -f biliup)
kill -9 $(ps aux | grep '[u]pload' | awk '{print $2}')
kill -9 $(ps aux | grep '[b]iliup' | awk '{print $2}')
# start the scanSegments process
# nohup $BILIVE_PATH/src/upload/uploadQueue.sh > $BILIVE_PATH/logs/uploadQueue.log 2>&1 &
nohup python -m src.upload.upload > $BILIVE_PATH/logs/uploadLog/upload-$(date +%Y%m%d-%H%M%S).log 2>&1 &
Expand Down

0 comments on commit 4a5f2b3

Please sign in to comment.