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

can't restart docker container #9

Open
anderbubble opened this issue Mar 8, 2020 · 0 comments
Open

can't restart docker container #9

anderbubble opened this issue Mar 8, 2020 · 0 comments

Comments

@anderbubble
Copy link

docker start davrods produces an error after docker stop davrods.

I suspect that apachectl is not being given sufficient time to gracefully shut down, causing its pid file to remain.

[janderson@fox1 docker-davrods]$ sudo docker stop davrods                                                                                                                                                        
davrods
[janderson@fox1 docker-davrods]$ sudo docker start davrods
davrods
[janderson@fox1 docker-davrods]$ sudo docker logs davrods --follow
[Sun Mar 08 17:49:09.158721 2020] [so:warn] [pid 21] AH01574: module ssl_module is already loaded, skipping
[Sun Mar 08 17:49:09.195070 2020] [suexec:notice] [pid 21] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Mar 08 17:49:09.275262 2020] [so:warn] [pid 21] AH01574: module ssl_module is already loaded, skipping
[Sun Mar 08 17:49:09.282349 2020] [lbmethod_heartbeat:notice] [pid 21] AH02282: No slotmem from mod_heartmonitor
[Sun Mar 08 17:49:09.287801 2020] [mpm_prefork:notice] [pid 21] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Sun Mar 08 17:49:09.287833 2020] [core:notice] [pid 21] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
128.138.138.142 - janderson [08/Mar/2020:17:49:14 +0000] "GET / HTTP/1.1" 200 6341 "-" "curl/7.29.0"
[Sun Mar 08 17:58:57.601662 2020] [so:warn] [pid 21] AH01574: module ssl_module is already loaded, skipping
[Sun Mar 08 17:58:57.602202 2020] [so:warn] [pid 21] AH01574: module ssl_module is already loaded, skipping
httpd (pid 21) already running
anderbubble added a commit to anderbubble/docker-davrods that referenced this issue Mar 8, 2020
apachectl doesn't pass signals properly, so httpd doesn't do
a graceful shutdown. This prevents the container from being
restarted, because the pid file remains.
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 a pull request may close this issue.

1 participant