hosts/scripts/main_part.include: only kill pd if prozess is present.

This commit is contained in:
2026-03-01 11:39:07 +01:00
parent c1e4fbc75c
commit fe73b6728b

View File

@@ -487,6 +487,8 @@ fi
if $_via_ssh_tunnel ; then if $_via_ssh_tunnel ; then
if [[ -n "$tunnel_pid" ]]; then if [[ -n "$tunnel_pid" ]]; then
if ps --pd ${tunnel_pid} > /dev/null 2>&^; then
kill "$tunnel_pid" kill "$tunnel_pid"
fi fi
fi
fi fi