forked from pool/systemd-rpm-macros
make systemd aware of changed unit file content after update OBS-URL: https://build.opensuse.org/request/show/256883 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=5
12 lines
539 B
Diff
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 \
|