|
Lines 51-65
Link Here
|
| 51 |
%_binfmtdir /usr/lib/binfmt.d |
51 |
%_binfmtdir /usr/lib/binfmt.d |
| 52 |
|
52 |
|
| 53 |
%_restart_check_systemctl \ |
53 |
%_restart_check_systemctl \ |
|
|
54 |
package_disable_on_update=%{?1} \ |
| 55 |
test "$YAST_IS_RUNNING" = instsys && exit 0 \ |
| 56 |
if [ -z "$package_disable_on_update" ]; then \ |
| 57 |
test "$DISABLE_RESTART_ON_UPDATE" = yes || \ |
| 58 |
test "$DISABLE_RESTART_ON_UPDATE" = 1 && exit 0 \ |
| 59 |
else \ |
| 60 |
test "$package_disable_on_update" = 1 && exit 0 \ |
| 61 |
fi \ |
| 54 |
test -f /etc/sysconfig/services && . /etc/sysconfig/services \ |
62 |
test -f /etc/sysconfig/services && . /etc/sysconfig/services \ |
| 55 |
test "$YAST_IS_RUNNING" = instsys && exit 0 \ |
63 |
test "$DISABLE_RESTART_ON_UPDATE" = yes || \ |
| 56 |
test "$DISABLE_RESTART_ON_UPDATE" = yes && exit 0 \ |
64 |
test "$DISABLE_RESTART_ON_UPDATE" = 1 && exit 0 \ |
| 57 |
/usr/bin/systemctl try-restart %{nil} |
65 |
/usr/bin/systemctl try-restart %{nil} |
| 58 |
|
66 |
|
| 59 |
%_stop_check_systemctl \ |
67 |
%_stop_check_systemctl \ |
|
|
68 |
package_stop_on_removal=%{?1} \ |
| 69 |
test "$YAST_IS_RUNNING" = instsys && exit 0 \ |
| 70 |
if [ -z "$package_stop_on_removal" ]; then \ |
| 71 |
test "$DISABLE_STOP_ON_REMOVAL" = yes || \ |
| 72 |
test "$DISABLE_STOP_ON_REMOVAL" = 1 && exit 0 \ |
| 73 |
else \ |
| 74 |
test $package_stop_on_removal = 1 && exit 0 \ |
| 75 |
fi \ |
| 60 |
test -f /etc/sysconfig/services && . /etc/sysconfig/services \ |
76 |
test -f /etc/sysconfig/services && . /etc/sysconfig/services \ |
| 61 |
test "$YAST_IS_RUNNING" = instsys && exit 0 \ |
77 |
test "$DISABLE_STOP_ON_REMOVAL" = yes || \ |
| 62 |
test "$DISABLE_STOP_ON_REMOVAL" = yes && exit 0 \ |
78 |
test "$DISABLE_STOP_ON_REMOVAL" = 1 && exit 0 \ |
| 63 |
/usr/bin/systemctl stop %{nil} |
79 |
/usr/bin/systemctl stop %{nil} |
| 64 |
|
80 |
|
| 65 |
%service_add_pre() \ |
81 |
%service_add_pre() \ |