Bug ID 960491
Summary "%restart_on_update apache2" does not work
Classification openSUSE
Product openSUSE 13.1
Version Final
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Apache
Assignee bnc-team-apache@forge.provo.novell.com
Reporter ecsos@schirra.net
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Macro "%restart_on_update apache2" does not work in 13.1.
When a package with "restart_on_update" in spec will be install an error like "
/var/tmp/rpm-tmp.tpX1Bc: line 15: /etc/init.d/apache2: No such file or
directory" rise up. And Apache will not restart.

Please backport macro to 13.1

Sample output from "rpm --eval '%restart_on_update apache2'" in 13.1:

        test -n "$FIRST_ARG" || FIRST_ARG=$1 
        if test "$FIRST_ARG" -ge 1 ; then 
           test -f /etc/sysconfig/services && . /etc/sysconfig/services 
           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 apache2 ; do 
                 /etc/init.d/$service try-restart > /dev/null || : 
              done 
           fi 
        fi 

But should be like 42.1:

        test -n "$FIRST_ARG" || FIRST_ARG=$1 
        if test "$FIRST_ARG" -ge 1 ; then 
           test -f /etc/sysconfig/services && . /etc/sysconfig/services 
           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 apache2 ; do 
                 test -x /bin/systemctl && /bin/systemctl try-restart $service
>/dev/null 2>&1 || : 
              done 
           fi 
        fi


You are receiving this mail because: