From 2b88f22eb209732769a873ad7081082994b1cfab Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 20 Aug 2020 17:57:36 -0400 Subject: [PATCH] Make HUP for rotate more reliable --- salt/suricata/files/suri-rotate.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/suricata/files/suri-rotate.conf b/salt/suricata/files/suri-rotate.conf index 40232633f..e8461c48f 100644 --- a/salt/suricata/files/suri-rotate.conf +++ b/salt/suricata/files/suri-rotate.conf @@ -7,6 +7,6 @@ create sharedscripts postrotate - docker exec -d so-suricata sh -c 'kill -HUP 6' + docker exec -d so-suricata bash -c 'kill -HUP $(cat /var/run/suricata.pid)' endscript -} \ No newline at end of file +}