Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 23, 2018. It is now read-only.
This repository was archived by the owner on Apr 23, 2018. It is now read-only.

Apache doesn't delete .pid file when container stopped with "docker stop" #3

@AlexDaciuk

Description

@AlexDaciuk

After stopping container with "docker stop containerID", you can't start it again

When running a "docker start containerID", it just exits after a second and stopping itself, when consulting logs, it says

httpd (pid 6) already running

According to this blog entry

According to the Apache documentation a SIGTERM will cause the server to immediately exit and terminate any in-progress requests, so you may not want to use docker stop on an Apache container

So, after some research, you have to send a "docker kill" with a SIGWINCH to apache PID to get a gracefull stop, but this is not very nice

A solution that I can think of, is deleting the .pid file after each start of the container (it's not fixing the not "gracefully" apache stop, but at least you will be able to start the container again

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions