#!/bin/bash # Wrapper script for dnsmasq to ensure TFTP logs are visible in docker logs echo "[dnsmasq] Starting TFTP server on port 69" echo "[dnsmasq] TFTP root: /config/menus" echo "[dnsmasq] TFTP security: enabled" echo "[dnsmasq] Logging: enabled (dhcp and queries)" # Start dnsmasq via gosu with logging to stderr (which supervisord can capture) exec gosu nbxyz /usr/sbin/dnsmasq --port=0 --keep-in-foreground --enable-tftp --user=nbxyz --tftp-secure --tftp-root=/config/menus --log-facility=- --log-dhcp --log-queries "$@"