From f0da99d28fd2b6ba5ed7bd619148e19aee190170 Mon Sep 17 00:00:00 2001 From: Johan Wassberg Date: Fri, 18 Oct 2024 07:38:26 +0200 Subject: [PATCH] livestatus.so can't handle HUP with a TCP listner https://github.com/naemon/naemon-livestatus/issues/117 As close to a reload we can get. At least the webgui and SSO session is preserved in this way. --- templates/naemon_monitor/service-override.conf.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/naemon_monitor/service-override.conf.erb b/templates/naemon_monitor/service-override.conf.erb index 56bba6b4..8ba3d2fd 100644 --- a/templates/naemon_monitor/service-override.conf.erb +++ b/templates/naemon_monitor/service-override.conf.erb @@ -1,2 +1,4 @@ [Service] -ExecReload=/usr/bin/docker exec <%= @naemon_container %> bash -c 'pkill -o naemon --signal HUP' +# livestatus.so can't handle HUP with a TCP listner +# https://github.com/naemon/naemon-livestatus/issues/117 +ExecReload=/usr/bin/docker restart <%= @naemon_container %>