Files
ha-kiosk-dashboard/stop-dashboard.sh
2025-12-31 04:27:02 -08:00

22 lines
463 B
Bash

#!/bin/bash
# Stop Home Assistant Dashboard from TTY
echo "Stopping Firefox dashboard..."
# Kill all Firefox processes for user kyle
pkill -u kyle firefox
sleep 1
if pgrep -u kyle firefox > /dev/null; then
echo "Some Firefox processes are still running. Force killing..."
pkill -9 -u kyle firefox
sleep 1
fi
if ! pgrep -u kyle firefox > /dev/null; then
echo "✓ Dashboard stopped"
else
echo "✗ Could not stop all Firefox processes"
fi