-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop.sh
More file actions
executable file
·28 lines (24 loc) · 964 Bytes
/
Copy pathstop.sh
File metadata and controls
executable file
·28 lines (24 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# HeyFoS - Stop Script
# Stops all HeyFoS services via LaunchDaemons (requires sudo for launchctl).
LABELS=(
"com.heyfos.backend"
"com.heyfos.frontend"
"com.cloudflare.cloudflared.heyfos"
)
NAMES=("🔧 Backend" "🎨 Frontend" "🌐 Cloudflare Tunnel")
echo "🛑 Stopping HeyFoS..."
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
for i in "${!LABELS[@]}"; do
label="${LABELS[$i]}"
name="${NAMES[$i]}"
echo -n " ${name}: "
if sudo launchctl list "$label" &>/dev/null; then
sudo launchctl bootout "system/$label" 2>/dev/null && echo "✅ stopped" || echo "⚠️ already stopped"
else
echo "⚠️ not loaded"
fi
done
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ HeyFoS stopped."
echo " Start again with: ./start.sh"