initial commit

Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
Ava Hahn 2025-08-16 00:47:14 +00:00
commit 4ee7c0cc18
13 changed files with 582 additions and 0 deletions

23
kaproxy/run.sh Executable file
View file

@ -0,0 +1,23 @@
#!/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