From 09ded526ef26b2a2e9a3b7e65429b41fe67ec337 Mon Sep 17 00:00:00 2001 From: zstadler Date: Tue, 2 Feb 2021 12:35:19 +0200 Subject: [PATCH] Document configuration reloading when using docker Based on https://github.com/maptiler/tileserver-gl/issues/420#issuecomment-766332814 --- docs/usage.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index d96da38..9d74b86 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -33,4 +33,8 @@ Reloading configuration ====== It is possible to reload the configuration file without restarting the whole process by sending a SIGHUP signal to the node process. -However, this does not currently work when running the tileserver-gl docker container (the signal is not passed to the subprocess, see https://github.com/maptiler/tileserver-gl/issues/420#issuecomment-597507663). + +When running the tileserver-gl docker container, the signal must be sent from within the container: +:: + + docker exec tileserver-gl bash -c 'kill -HUP $(ls -l /proc/*/exe | sed -n "/\/node$/s/.*proc\/\([0-9]\+\)\/exe .*/\1/p")'