dnsquery/deploy/entrypoint.sh
Ubuntu ec23258cc9 feat: launch DNS query MVP
Co-authored-by: multica-agent <github@multica.ai>
2026-08-03 17:42:44 +00:00

18 lines
336 B
Bash

#!/bin/sh
set -eu
ADDR=:8081 /usr/local/bin/server &
api_pid=$!
/usr/sbin/nginx -g 'daemon off;' &
web_pid=$!
shutdown() {
kill -TERM "$api_pid" 2>/dev/null || true
kill -QUIT "$web_pid" 2>/dev/null || true
wait "$api_pid" 2>/dev/null || true
wait "$web_pid" 2>/dev/null || true
}
trap shutdown INT TERM EXIT
wait "$api_pid"