Comment # 32 on bug 968405 from
(In reply to Michael Schr�der from comment #27)
> I'm also in favor of checking another environment variable, e.g.
> DISABLE_RESTART_ON_UPDATE_OVERRIDE

Do we really need this? IHM we just need to 'or' the user and spec file choice.
We don't want a restart if the spec file or the user doesn't want it.

Thus:
%_restart_check_systemctl  \
        test "$DISABLE_RESTART_ON_UPDATE" = yes && exit 0 \
        test "$YAST_IS_RUNNING" = instsys       && exit 0 \
        test -f /etc/sysconfig/services && . /etc/sysconfig/services && \
        test "$DISABLE_RESTART_ON_UPDATE" = yes && exit 0 \
        /usr/bin/systemctl try-restart %{nil}

and:
%_stop_check_systemctl \
        test "$DISABLE_STOP_ON_REMOVAL" = yes && exit 0 \
        test "$YAST_IS_RUNNING" = instsys     && exit 0 \
        test -f /etc/sysconfig/services && . /etc/sysconfig/services  && \
        test "$DISABLE_STOP_ON_REMOVAL" = yes && exit 0 \
        /usr/bin/systemctl stop %{nil}

Michael, can we get rid of the version of %service_del_postun and
%service_del_preun in /usr/lib/rpm/macros, should we rather move these macros
there or should they be renamed?


You are receiving this mail because: