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

apache2 fails to restart after log rotation #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bblacey
Copy link

@bblacey bblacey commented Jan 19, 2019

I have deployed several containers based upon your excellent docker-alpine-apache image however I have discovered that some containers fail after log rotation. This pull request changes logrotate to reload apache2 using runit vs. the default init.d script. I also fixed a couple sv run script environment variables.

  - APACHE_PID_FILE name is "httpd.pid", not apache2.pid
  - APACHE_LOG_DIR sub-directory is "logs", log log
  - apache2 reloaded with "sv reload" in postrotate block
  - eliminate docker build empty-completion warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant