- adapt restart_on_update and stop_on_removal to use systemctl [bnc#878255]

OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=331
This commit is contained in:
Michael Schröder 2014-05-22 14:41:57 +00:00 committed by Git OBS Bridge
parent cd5025c1b6
commit 9122fac510
2 changed files with 8 additions and 2 deletions

View File

@ -31,7 +31,7 @@
if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then \
test -x /bin/systemctl && /bin/systemctl daemon-reload >/dev/null 2>&1 || : \
for service in %{?*} ; do \
/etc/init.d/$service try-restart > /dev/null || : \
test -x /bin/systemctl && /bin/systemctl try-restart $service >/dev/null 2>&1 || : \
done \
fi \
fi \
@ -46,7 +46,7 @@
test -f /etc/sysconfig/services && . /etc/sysconfig/services \
if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_STOP_ON_REMOVAL" != yes ; then \
for service in %{?*} ; do \
/etc/init.d/$service stop > /dev/null \
test -x /bin/systemctl && /bin/systemctl stop $service >/dev/null 2>&1 || : \
done \
fi \
fi \

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 22 16:40:35 CEST 2014 - mls@suse.de
- adapt restart_on_update and stop_on_removal to use
systemctl [bnc#878255]
-------------------------------------------------------------------
Fri May 9 13:33:09 CEST 2014 - mls@suse.de