valum-framework / valum

Web micro-framework written in Vala
https://valum-framework.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
225 stars 23 forks source link

Cannot send SIGTERM to service in Docker container #187

Open arteymix opened 7 years ago

arteymix commented 7 years ago

We have right to the following error when sending a SIGTERM to a running docker container.

GLib-WARNING **: poll(2) failed due to: Operation not permitted.

arteymix commented 7 years ago

I investigated this and it seems we can still send a SIGTERM via docker stop, it just doesn't play well via the pseudo-TTY.

This can wait for a patch release.

notanimposter commented 2 years ago

^C works fine when my Dockerfile contains:

ENTRYPOINT /app/bin/app --any --port 3003

but it doesn't do anything when my Dockerfile contains:

ENTRYPOINT ["/app/bin/app", "--any", "--port", "3003"]

arteymix commented 2 years ago

The difference here is that your option implies using a shell for running the command. Ideally VSGI should handle SIGTERM properly.