Adding liquidsoap
Some checks failed
Lint / lint (push) Has been cancelled

This commit is contained in:
Logan Cusano
2025-10-19 03:03:28 -04:00
parent f2f401cf3f
commit 62dd06f0d8
3 changed files with 69 additions and 2 deletions

22
run_multi-rx_service.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Configuration file path
CONFIG_FILE="/configs/active.cfg.json"
# --- Start the main OP25 receiver (multi_rx.py) in the background ---
# The '&' sends the process to the background.
echo "Starting multi_rx.py..."
./multi_rx.py -v 1 -c $CONFIG_FILE &
MULTI_RX_PID=$! # Store the PID of the background process
# --- Start the liquid-dsp plot utility (op25.liq) in the background ---
echo "Starting op25.liq..."
./op25.liq -c $CONFIG_FILE &
LIQ_PID=$! # Store the PID of the op25.liq process
# Wait for both background jobs to finish.
# Since multi_rx.py is the core service, this script will effectively wait
# until multi_rx.py is externally stopped (via the API).
# The trap command ensures that SIGTERM is passed to the background jobs.
trap "kill $MULTI_RX_PID $LIQ_PID" SIGTERM SIGINT
wait $MULTI_RX_PID