From 29d33582120bd281556e16542a002df5d9448cc5 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 19 Mar 2023 20:43:55 +0100 Subject: [PATCH] Added ExecStop to pilersearch systemd config Signed-off-by: Janos SUTO --- systemd/pilersearch.service | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/pilersearch.service b/systemd/pilersearch.service index c12172bf..e40020df 100644 --- a/systemd/pilersearch.service +++ b/systemd/pilersearch.service @@ -5,6 +5,7 @@ After=network.target mariadb.service [Service] ExecStart=/usr/bin/searchd --config /etc/piler/manticore.conf ExecStartPre=/bin/bash -c "if [[ ! -d /var/run/piler ]]; then mkdir -p /var/run/piler; chown piler:piler /var/run/piler; fi" +ExecStop=/usr/bin/searchd --config /etc/piler/manticore.conf --stopwait PIDFile=/var/run/piler/searchd.pid KillMode=process Restart=on-failure