tunnel, keep the loop in the foreground so that the output makes it to the log.

This commit is contained in:
me committed 2026-11-06 14:53:16 -07:00
1 parent bbffe8c69a
commit f587ca1e5e
1 file changed
+1 -3
+1 -3
View File
@@ -60,7 +60,6 @@
exec 2>&1
# Health check to ensure connection does not go stale.
(
while true; do
sleep 300
echo -n "RUN-LOOP: "
@@ -72,8 +71,7 @@
sv restart {{ tunnel_service_name }}
fi
echo "RUN-LOOP: Going back to sleep."
done
) &
done &
# Do not use `exec` here otherwise the loop may get killed.
chpst -u {{ user }} ssh -v -N \