forked from pool/systemd-rpm-macros
Accepting request 362153 from home:dimstar:Factory
- Also honor DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE when specified by a package directly in the .spec file. Some package know that a restart of their service is fatal (boo#968405). OBS-URL: https://build.opensuse.org/request/show/362153 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=13
This commit is contained in:
parent
32642573a0
commit
34f074503f
@ -51,12 +51,14 @@ Requires(postun): systemd \
|
||||
%_binfmtdir /usr/lib/binfmt.d
|
||||
|
||||
%_restart_check_systemctl \
|
||||
test "$DISABLE_RESTART_ON_UPDATE" = yes && exit 0 \
|
||||
test -f /etc/sysconfig/services && . /etc/sysconfig/services \
|
||||
test "$YAST_IS_RUNNING" = instsys && exit 0 \
|
||||
test "$DISABLE_RESTART_ON_UPDATE" = yes && exit 0 \
|
||||
/usr/bin/systemctl try-restart %{nil}
|
||||
|
||||
%_stop_check_systemctl \
|
||||
test "$DISABLE_STOP_ON_REMOVAL" = yes && exit 0 \
|
||||
test -f /etc/sysconfig/services && . /etc/sysconfig/services \
|
||||
test "$YAST_IS_RUNNING" = instsys && exit 0 \
|
||||
test "$DISABLE_STOP_ON_REMOVAL" = yes && exit 0 \
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 27 10:18:55 UTC 2016 - dimstar@opensuse.org
|
||||
|
||||
- Also honor DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE
|
||||
when specified by a package directly in the .spec file. Some
|
||||
package know that a restart of their service is fatal
|
||||
(boo#968405).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 20 16:53:23 UTC 2015 - werner@suse.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package systemd-rpm-macros
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
|
Loading…
x
Reference in New Issue
Block a user