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:
parent
c8fbb58ae9
commit
efe3db11ce
@ -0,0 +1 @@
|
||||
__version__ = "1.5.0.dev395.ggacb3a20"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user