Move restart-routing trigger into setup_forwarding
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -374,6 +374,17 @@ setup_forwarding() {
|
|||||||
|
|
||||||
log INFO "Forwarding rules configured"
|
log INFO "Forwarding rules configured"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
# Trigger host routing service restart
|
||||||
|
log INFO "Triggering host routing service restart..."
|
||||||
|
touch /runtime/restart-routing
|
||||||
|
sleep 2
|
||||||
|
if [ ! -f /runtime/restart-routing ]; then
|
||||||
|
log INFO "Host routing service restarted"
|
||||||
|
else
|
||||||
|
log WARN "Host watcher may not be running (trigger file still exists)"
|
||||||
|
fi
|
||||||
|
|
||||||
log INFO "Container should now be able to reach $TARGET_IP through this VM"
|
log INFO "Container should now be able to reach $TARGET_IP through this VM"
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
@@ -618,16 +629,6 @@ start_anyconnect() {
|
|||||||
# Setup forwarding
|
# Setup forwarding
|
||||||
setup_forwarding
|
setup_forwarding
|
||||||
|
|
||||||
# Trigger host routing service restart via file
|
|
||||||
log INFO "Triggering host routing service restart..."
|
|
||||||
touch /runtime/restart-routing
|
|
||||||
sleep 2
|
|
||||||
if [ ! -f /runtime/restart-routing ]; then
|
|
||||||
log INFO "Host routing service restarted"
|
|
||||||
else
|
|
||||||
log WARN "Host watcher may not be running (trigger file still exists)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Test connection
|
# Test connection
|
||||||
log INFO "Testing connection to $TARGET_IP..."
|
log INFO "Testing connection to $TARGET_IP..."
|
||||||
if ping -c 2 -W 3 "$TARGET_IP" &>/dev/null; then
|
if ping -c 2 -W 3 "$TARGET_IP" &>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user