mirror of
https://github.com/timerring/bilive.git
synced 2026-05-06 13:30:13 +08:00
17 lines
461 B
Bash
Executable File
17 lines
461 B
Bash
Executable File
# pause#!/bin/bash
|
|
export config=./settings.toml
|
|
|
|
# Do not use proxy
|
|
export no_proxy=*
|
|
|
|
# bind host and port (can edit)
|
|
host=0.0.0.0
|
|
port=2233
|
|
|
|
kill -9 $(ps aux | grep '[b]lrec' | awk '{print $2}')
|
|
nohup blrec -c $config --open --host $host --port $port --api-key "$RECORD_KEY" > ./logs/record/blrec-$(date +%Y%m%d-%H%M%S).log 2>&1 &
|
|
if [ $? -eq 0 ]; then
|
|
echo "success"
|
|
else
|
|
echo "An error occurred while starting blrec. Check the logs for details."
|
|
fi |