jayfield/novnc-baseimage no longer resolves, so point at the public ich777/novnc-baseimage instead. That image lays out TurboVNC, websockify, and noVNC via standard package paths rather than /opt/TurboVNC and /tmp/websockify /tmp/noVNC, so server.sh is updated to match. Also remove any stale .X99-lock/.X11-unix socket before starting Xvnc, since /tmp survives docker stop/start and previously left Xvnc unable to rebind the display on restart. Signal exit-code math in signals.sh now uses bash arithmetic instead of bc, which isn't present in the new base image. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RZjg4yXCYacriPz3euenQF
26 lines
451 B
Bash
26 lines
451 B
Bash
signals_trap_with_arg() {
|
|
func="$1" ; shift
|
|
for sig ; do
|
|
echo "$func $sig"
|
|
trap "$func $sig" "$sig"
|
|
done
|
|
}
|
|
|
|
signals_wait_forever() {
|
|
while true
|
|
do
|
|
tail -f /dev/null & wait ${!}
|
|
done
|
|
}
|
|
|
|
signal_name_to_number() {
|
|
SIGNAME="$1"
|
|
trap -l | sed -nr "s/.*\b([0-9]+)\) $SIGNAME.*/\1/p"
|
|
}
|
|
|
|
signal_return_val() {
|
|
SIGNAME="$1"
|
|
SIGNUM=$(signal_name_to_number ${SIGNAME})
|
|
echo $((128 + SIGNUM))
|
|
}
|