Skip to content

Signal to nginx process #795

@hrsantiago

Description

@hrsantiago

Hello, I've been using Lapis inside a Docker container and it works just fine.
However I'm having trouble stopping and restarting the container because the signals are not passed to the nginx process.

The commands:
docker stop container_name docker restart container_name

Sends the signal TERM to the lapis process, however it does not forward the signal to the nginx process.

I see that I can do the following:

docker exec -ti container_name lapis signal 3

And it'll pass the signal 3 (QUIT) to the nginx and finish properly.
This way I can safely finish some code. Eg:

while not ngx.worker.exiting() do

Is there any reason for Lapis not forwaring all signals to nginx?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions