From efe3db11ce248765a57dd2cb105b5688e7ad1769 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 7 Aug 2017 09:51:04 -0400 Subject: [PATCH] Add trigger for restarting on pyghmi updates Often times, a pyghmi update carries the substance of a patch. Instead of a person having to remember to manually restart, try to trigger an update to restart confluent automatically. --- confluent_server/confluent/__init__.py | 1 + confluent_server/confluent_server.spec.tmpl | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/confluent_server/confluent/__init__.py b/confluent_server/confluent/__init__.py index e69de29b..07e5b37e 100644 --- a/confluent_server/confluent/__init__.py +++ b/confluent_server/confluent/__init__.py @@ -0,0 +1 @@ +__version__ = "1.5.0.dev395.ggacb3a20" diff --git a/confluent_server/confluent_server.spec.tmpl b/confluent_server/confluent_server.spec.tmpl index 37800cdc..d803e859 100644 --- a/confluent_server/confluent_server.spec.tmpl +++ b/confluent_server/confluent_server.spec.tmpl @@ -33,6 +33,10 @@ done grep -v confluent/__init__.py INSTALLED_FILES.bare > INSTALLED_FILES cat INSTALLED_FILES +%triggerin -- python-pyghmi +if [ -x /usr/bin/systemctl ]; then /usr/bin/systemctl try-restart confluent >& /dev/null; fi +true + %post if [ -x /usr/bin/systemctl ]; then /usr/bin/systemctl try-restart confluent >& /dev/null; fi true