Skip to content

Commit 4a5f2b3

Browse files
authored
refactor: simplified startup scripts (#155)
fix #152
1 parent 338c618 commit 4a5f2b3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

record.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export no_proxy=*
88
host=0.0.0.0
99
port=2233
1010

11-
kill -9 $(pgrep -f blrec)
11+
kill -9 $(ps aux | grep '[b]lrec' | awk '{print $2}')
1212
nohup blrec -c $config --open --host $host --port $port > $BILIVE_PATH/logs/blrec.log 2>&1 &
1313
echo "blrec run success!"

scan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# kill the previous scanSegments process
2-
kill -9 $(pgrep -f src.burn.scan)
2+
kill -9 $(ps aux | grep 'src.burn.scan' | grep -v grep | awk '{print $2}')
33
# start the scanSegments process
44
nohup python -m src.burn.scan > $BILIVE_PATH/logs/scanLog/scan-$(date +%Y%m%d-%H%M%S).log 2>&1 &
55
# Check if the last command was successful

upload.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kill the previous scanSegments process
2-
kill -9 $(pgrep -f upload)
3-
kill -9 $(pgrep -f biliup)
2+
kill -9 $(ps aux | grep '[u]pload' | awk '{print $2}')
3+
kill -9 $(ps aux | grep '[b]iliup' | awk '{print $2}')
44
# start the scanSegments process
55
# nohup $BILIVE_PATH/src/upload/uploadQueue.sh > $BILIVE_PATH/logs/uploadQueue.log 2>&1 &
66
nohup python -m src.upload.upload > $BILIVE_PATH/logs/uploadLog/upload-$(date +%Y%m%d-%H%M%S).log 2>&1 &

0 commit comments

Comments
 (0)