pelias / pip-service

Pelias point-in-polygon-service
https://pelias.io
MIT License
16 stars 18 forks source link

Add script to start service #63

Closed orangejulius closed 6 years ago

orangejulius commented 6 years ago

This script uses exec to ensure the PID of the script is the PID of the PIP service later.

The Dockerfile is updated to use the script, so that containers can be shut down immediately by avoiding any intermediate processes that won't forward signals.

See https://github.com/npm/npm/issues/4603 Fixes https://github.com/pelias/pip-service/issues/61

orangejulius commented 6 years ago

Connects https://github.com/pelias/pelias/issues/745 as it also helps support read-only root filesystems when running in a Docker container.