Shutdown a proxy gracefully on SIGUSR1.

No new publishers will be created by the proxy, existing publishers can
still be subscribed. After all clients have disconnected, the process
will terminate.
This commit is contained in:
Joachim Bauch
2020-08-13 13:17:09 +02:00
parent 2626b1ac6c
commit d9d11b58e1
4 changed files with 109 additions and 18 deletions
+3 -1
View File
@@ -149,7 +149,9 @@ for each token id. See the comments in `proxy.conf.in` for other configuration
options.
When the proxy process receives a `SIGHUP` signal, the list of allowed token
ids / public keys is reloaded.
ids / public keys is reloaded. A `SIGUSR1` signal can be used to shutdown a
proxy process gracefully after all clients have been disconnected. No new
publishers will be accepted in this case.
## Setup of frontend webserver