mod_tile
mod_tile copied to clipboard
Apache startup failure if shared memory segment already exists
The following code segment causes trouble if mod_tile
is being used in a containerized environment (e.g Docker) : https://github.com/openstreetmap/mod_tile/blob/master/src/mod_tile.c#L1443-L1444
If the httpd processes got killed with SIGTERM
the files still exist after the restart of the container. Because of the way docker handles processes the same PID is assigned to httpd which will trigger said issue.
The call to apr_shm_create
will fail because a file from the previous run still exists.
Would it be possible to remove those files before attempting to create them? This should be a safe operation considering that no other running process could have the same PID.
I have mod_tile
and renderd
running in a Docker container without any problems. Is there still a problem or can this be closed?