-
Notifications
You must be signed in to change notification settings - Fork 139
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
base: v3
Are you sure you want to change the base?
Run Apache2 in background #215
Conversation
Interesting trick! Let me test this! |
Ok, I need to ask. 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) |
Two ways: Either open a bash session and send the command: Or use the docker command: |
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. |
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.