From bc5efa8a7eb53135546884708cdcabbaffb75387 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 20 Jan 2017 15:50:12 -0500 Subject: [PATCH] Try restarting confluent if running on update This mitigates chance of confluent being stale. --- confluent_server/confluent_server.spec.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent_server.spec.tmpl b/confluent_server/confluent_server.spec.tmpl index 315daea9..6a8c7aec 100644 --- a/confluent_server/confluent_server.spec.tmpl +++ b/confluent_server/confluent_server.spec.tmpl @@ -33,6 +33,9 @@ done grep -v confluent/__init__.py INSTALLED_FILES.bare > INSTALLED_FILES cat INSTALLED_FILES +%post +if [ -x /usr/bin/systemctl ]; then /usr/bin/systemctl try-restart confluent; fi + %clean rm -rf $RPM_BUILD_ROOT