Implemented SIGTERM handler. Without it docker used to wait and then kill application with SIGKILL. Another advantage of handling SIGTERM - it's possible to remove themself from cluster through api call: DELETE /v2/members/<my_id>. This way cluster wont have any problems with member which is not accessible.
Implemented SIGTERM handler. Without it docker used to wait and then
kill application with SIGKILL. Another advantage of handling SIGTERM -
it's possible to remove themself from cluster through api call:
DELETE /v2/members/<my_id>. This way cluster wont have any problems with
member which is not accessible.

vosmann/spilo,zalando/spilo,zalando/spilo,vosmann/spilo,zalando/spilo