add reload handler to kaproxy
Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
parent
4ee7c0cc18
commit
ff1bf042e7
1 changed files with 6 additions and 0 deletions
|
|
@ -15,7 +15,13 @@ function sigint_handler() {
|
||||||
trap - INT
|
trap - INT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sigcont_handler() {
|
||||||
|
echo "sigcont received. reloading nginx."
|
||||||
|
invoke -s reload
|
||||||
|
}
|
||||||
|
|
||||||
trap 'sigint_handler' INT
|
trap 'sigint_handler' INT
|
||||||
|
trap 'sigcont_handler' CONT
|
||||||
|
|
||||||
invoke &
|
invoke &
|
||||||
wait
|
wait
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue