Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
realies committed Dec 26, 2024
1 parent b145e0d commit 55b8879
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions rootfs/etc/s6-overlay/s6-rc.d/svc-novnc/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/command/with-contenv bash

# Start noVNC proxy
exec s6-setuidgid $(id -nu $PUID) /usr/share/novnc/utils/novnc_proxy --vnc localhost:${VNC_PORT} --listen ${NOVNC_PORT}
# Print all relevant variables and command components for debugging
echo "Environment variables:"
echo "VNC_PORT=${VNC_PORT}"
echo "NOVNC_PORT=${NOVNC_PORT}"
echo "PUID=${PUID}"
echo "User resolution:"
echo "id -nu $PUID = $(id -nu $PUID)"
echo "Full command that will be executed:"
echo "s6-setuidgid $(id -nu $PUID) /usr/share/novnc/utils/novnc_proxy --vnc localhost:5900 --listen 6080 --web /usr/share/novnc"

# Start noVNC proxy with explicit websockify options
exec s6-setuidgid $(id -nu $PUID) /usr/share/novnc/utils/novnc_proxy --vnc localhost:5900 --listen 6080 --web /usr/share/novnc

0 comments on commit 55b8879

Please sign in to comment.