From a766dfd233a392ac8a82cccc48444481c8b5b4fb Mon Sep 17 00:00:00 2001 From: zstadler Date: Sat, 5 Mar 2022 22:37:39 +0200 Subject: [PATCH 1/2] Update usage.rst Typo correction --- docs/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index b688c47..127af2d 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -35,4 +35,4 @@ Reloading the configuration It is possible to reload the configuration file without restarting the whole process by sending a SIGHUP signal to the node process. - The `docker kill -s HUP tileserver-gl` command can be used when running the tileserver-gl docker container. -- The `docker-compose -s HUP tileserver-gl-service-name` can be used when tileserver-gl is run as a docker-compose service. +- The `docker-compose kill -s HUP tileserver-gl-service-name` can be used when tileserver-gl is run as a docker-compose service. From edd7c7dd87fa8347eaaab088f97045078c36b92e Mon Sep 17 00:00:00 2001 From: zstadler Date: Sun, 6 Mar 2022 16:33:56 +0200 Subject: [PATCH 2/2] Allow multiple refreshes by sending multiple `HUP` kill commands to the container. --- docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 538d253..a93e296 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -24,6 +24,10 @@ if ! which -- "${1}"; then # Wait exits immediately on signals which have traps set. Store return value and wait # again for all jobs to actually complete before continuing. wait $! || RETVAL=$? + while [ ${RETVAL} = 129 ] ; do + # Refressh signal HUP received. Continue waiting for signals. + wait $! || RETVAL=$? + done wait exit ${RETVAL} fi