docs: Add 42 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 59s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 59s
This commit is contained in:
33
squashkiwi-streaming/status.sh
Executable file
33
squashkiwi-streaming/status.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars "PROJECT_NAME" "LOCAL_DATA_FOLDER"
|
||||
|
||||
cd "${LOCAL_DATA_FOLDER}/config" || _die "Failed to change to config directory"
|
||||
|
||||
echo "=== ${PROJECT_NAME} Status ==="
|
||||
echo ""
|
||||
|
||||
# Show container status
|
||||
docker compose ps
|
||||
|
||||
echo ""
|
||||
echo "=== Stream Health ==="
|
||||
|
||||
# Check MediaMTX stream
|
||||
if curl -s "http://localhost:9997/v2/paths/list" | grep -q "court_main"; then
|
||||
echo "✓ MediaMTX stream is active"
|
||||
else
|
||||
echo "✗ MediaMTX stream is not active"
|
||||
fi
|
||||
|
||||
# Check web interface
|
||||
if curl -s "http://localhost:${HOST_PORT:-8080}/health" > /dev/null 2>&1; then
|
||||
echo "✓ Web interface is accessible"
|
||||
else
|
||||
echo "✗ Web interface is not accessible"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Recent Logs ==="
|
||||
docker compose logs --tail=10
|
Reference in New Issue
Block a user