Hello.
SIGKILL(9) is not able to trapped for any process.
How about using SIGTERM or QUIT?
Or you might want to see following about controlling nginx with signal.
http://nginx.org/en/docs/control.html
2013/8/8 Vivek Goel <goelvivek2011@gmail.com>
> Hi,
> I am facing one problem with nginx. I am waiting for nginx to stop
> withing 30 seconds. If it is not getting stopped, I am firing command to
> kill master process using
> pkill -9 <master_process_pid>
>
> But, Killing master is not killing the worker process. Due to that reason.
> Port is not getting released.
>
> Is it known problem or desired behavior ?
>
> regards
> Vivek Goel
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
--
Tatsuhiko Kubo
E-Mail : cubicdaiya@gmail.com
HP : http://cccis.jp/index_en.html
Twitter : http://twitter.com/cubicdaiya
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx