7 lines
308 B
Bash
7 lines
308 B
Bash
#!/bin/bash
|
|
|
|
# This script should be another service on the machine to watch the main script for failures and restart it if there are any
|
|
|
|
( tail -f -n0 /opt/sdr-scanner/scanner_log & ) | grep -q ": cb transfer status: 1, canceling..."
|
|
systemctl restart radioNode.service
|
|
echo "Restarted SDR Scanner service" |