initial commit
Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
commit
4ee7c0cc18
13 changed files with 582 additions and 0 deletions
23
kaproxy/run.sh
Executable file
23
kaproxy/run.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue