nginx-profile-setup/kaproxy/run.sh
Ava Hahn 4ee7c0cc18 initial commit
Signed-off-by: Ava Hahn <a.hahn@f5.com>
2025-08-16 00:47:14 +00:00

23 lines
361 B
Bash
Executable file

#!/bin/bash
function invoke() {
/nginx/objs/nginx \
-p /tmp \
-e /tmp/error.log \
-c /nginx.conf \
-g "daemon off;" \
$@
}
function sigint_handler() {
echo "sigint received. trigger again to kill."
invoke -s quit
trap - INT
}
trap 'sigint_handler' INT
invoke &
wait
echo "NGINX down. waiting until signalled..."
sleep infinity