Skip to content

Conversation

mariopenterman
Copy link

When running in foreground mode the SIGWINCH signal is simple being ignored by Apache2.
By switching to background mode and listening to the SIGTERM signal which then executes a graceful stop the problem is solved.

@moufmouf
Copy link
Member

Interesting trick! Let me test this!

@moufmouf
Copy link
Member

Ok, I need to ask.
How do you test this?

How do you send a SIGWINCH signal to Apache? (right now, what I'm interested in is having Docker shutting down the container when I press ctrl-c, which happens to work)

@mariopenterman
Copy link
Author

Two ways:

Either open a bash session and send the command:
"sudo kill -28 1", where 1 is the PID of Tini.

Or use the docker command:
docker kill --signal="SIGWINCH" container-id/name

@mistraloz
Copy link
Collaborator

Thank for your work but we waiting to long to merge it. This PR is based on branch v3. Please compare with v4 and make an other PR.

@mistraloz mistraloz added enhancement Work on new feature (or any question related to new feature) stale Issues inactives for a while (automatically) labels Sep 21, 2021
@mistraloz mistraloz added this to the V4 milestone Nov 4, 2021
@mistraloz mistraloz removed the stale Issues inactives for a while (automatically) label Nov 4, 2021
This was referenced Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Work on new feature (or any question related to new feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants