2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

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.
This commit is contained in:
Jarrod Johnson 2017-08-07 09:51:04 -04:00
parent c8fbb58ae9
commit efe3db11ce
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
__version__ = "1.5.0.dev395.ggacb3a20"

View File

@ -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