[nginx] dso

Igor Sysoev igor at sysoev.ru
Wed Apr 27 11:22:46 UTC 2016


On 27 Apr 2016, at 12:10, 洪志道 <hongzhidao at gmail.com> wrote:

> Hi,
> 
> for example following config:
> 
> daemon  on;
> ...
> load_module  modules/ngx_http_test_module.so;
> ...
> 
> > start nginx
> > change ngx_http_test_module.c, then regenerate so file
> > kill -HUP pid
> 
> I found nginx still run the old so file (load first time), and how to work with new so file?
> 
> I tried .../sbin/nginx -s reload, It works as I expected. It seems there is some differences in 'kill -HUP' and 'sbin/nginx -s reload’;

kill -USR2 `cat nginx.pid`; sleep 2; kill -QUIT `cat nginx.pid.oldbin`


-- 
Igor Sysoev
http://nginx.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20160427/47494d20/attachment.html>


More information about the nginx-devel mailing list