41 lines
937 B
Bash
41 lines
937 B
Bash
#!/bin/bash
|
|
cd /tank/inou
|
|
|
|
echo "=== Inou Status ==="
|
|
echo ""
|
|
|
|
# Services
|
|
echo "Services:"
|
|
if pgrep -f "bin/api$" > /dev/null; then
|
|
echo " API: running (PID $(pgrep -f 'bin/api$'))"
|
|
else
|
|
echo " API: stopped"
|
|
fi
|
|
|
|
if pgrep -f "bin/viewer$" > /dev/null; then
|
|
echo " Viewer: running (PID $(pgrep -f 'bin/viewer$'))"
|
|
else
|
|
echo " Viewer: stopped"
|
|
fi
|
|
|
|
if pgrep -f "bin/portal$" > /dev/null; then
|
|
echo " Portal: running (PID $(pgrep -f 'bin/portal$'))"
|
|
else
|
|
echo " Portal: stopped"
|
|
fi
|
|
|
|
echo ""
|
|
echo "Endpoints:"
|
|
echo " Portal: https://inou.com"
|
|
echo " Viewer: https://inou.com:8767"
|
|
echo " API: https://inou.com/api/* (internal :8082)"
|
|
|
|
echo ""
|
|
echo "FIPS 140-3 Build Status:"
|
|
|
|
if [[ -x "bin/fips-check" ]]; then
|
|
bin/fips-check bin/api bin/portal bin/viewer bin/import-genome bin/lab-scrape bin/lab-import 2>/dev/null | sed 's/^/ /'
|
|
else
|
|
echo " (fips-check not found - run make deploy)"
|
|
fi
|