-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathverify-deployment.sh
More file actions
executable file
·36 lines (27 loc) · 1017 Bytes
/
Copy pathverify-deployment.sh
File metadata and controls
executable file
·36 lines (27 loc) · 1017 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
29
30
31
32
33
34
35
36
#!/bin/bash
# Final cleanup and verification
echo "🧹 Cleaning up all Caddy processes..."
pkill -9 caddy 2>/dev/null || true
sleep 2
echo "🔄 Starting caddymanager service..."
systemctl restart caddymanager
echo "⏳ Waiting for service to fully start..."
sleep 10
echo ""
echo "✅ VERIFICATION RESULTS:"
echo "======================="
echo ""
echo "1️⃣ Caddy Binary Version:"
/usr/bin/caddy version
echo ""
echo "2️⃣ Layer4 Module Status:"
/usr/bin/caddy list-modules | grep "^layer4$" && echo " ✅ Layer4 module is present!" || echo " ❌ Layer4 module missing"
echo ""
echo "3️⃣ Service Status:"
systemctl is-active caddymanager && echo " ✅ Service is running" || echo " ❌ Service is not running"
echo ""
echo "4️⃣ Recent Logs (last 20 lines):"
journalctl -u caddymanager -n 20 --no-pager | tail -n 15
echo ""
echo "5️⃣ Configuration Sync Status:"
journalctl -u caddymanager --since "30 seconds ago" --no-pager | grep -E "SYNC.*Successfully|SYNC.*Failed" | tail -n 3