Implement install and update system for the bot
- LINUX OR WINDOW WSL ONLY
This commit is contained in:
7
Client/restartSdrScanner.sh
Normal file
7
Client/restartSdrScanner.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user