Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Apache2 in background #215

Open
wants to merge 8 commits into
base: v3
Choose a base branch
from

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.

utils/apache2-background Outdated Show resolved Hide resolved
@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