3
0
systemd-rpm-macros/systemd-daemon-reload-before-service-restart.patch

12 lines
539 B
Diff

diff -Naur orig/macros.systemd mod/macros.systemd
--- orig/macros.systemd 2014-10-14 08:54:56.264889350 +0200
+++ mod/macros.systemd 2014-10-15 13:10:43.134133358 +0200
@@ -108,6 +108,7 @@
if [ $FIRST_ARG -ge 1 ]; then \
# Package upgrade, not uninstall \
if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then \
+ /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \
/usr/bin/systemctl try-restart %{?*} >/dev/null 2>&1 || : \
fi \
else # package uninstall \