Hmm, we are sending SIGTER (and SIGKILL) to entire process group, so
subshell child (our daemon) should get SIGTERM and close gracefully if it
can (?).


2013/5/11 Łukasz Mierzwa <[email protected]>

> One more thing, graceful shutdown only works for
> (legion-)smart-attache-daemon, other options spaws subshell that executes
> daemon, and uWSGI stores subshells PID, not actual daemon PID. Sending
> SIGTERM to subshell doesn't shutdown daemon and it is killed with SIGKILL
> after timeout is reached (--reload-mercy value or 3 seconds if
> --reload-mercy is 0).
> Sending SIGKILL seems brutal for some daemons, so maybe we could track
> proper PID?
>
>
> 2013/5/10 Roberto De Ioris <[email protected]>
>
>>
>> > 2013/5/10 Roberto De Ioris <[email protected]>
>> >
>> >> Lukasz, can you check if after the patch all works fine ?
>> >>
>> >
>> > I've tested every daemon command and there is one more fix needed
>> > https://github.com/unbit/uwsgi/pull/275 for legion-smart-attach-daemon2
>> > All non-legion daemon options seem to be working fine
>> >
>>
>> Great, i will release 1.9.10 tomorrow
>>
>> Thanks a lot
>>
>>
>> --
>> Roberto De Ioris
>> http://unbit.it
>> _______________________________________________
>> uWSGI mailing list
>> [email protected]
>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>>
>
>
>
> --
> Łukasz Mierzwa
>



-- 
Łukasz Mierzwa
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to