[Bug 960491] New: "%restart_on_update apache2" does not work
http://bugzilla.opensuse.org/show_bug.cgi?id=960491 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: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=960491 http://bugzilla.opensuse.org/show_bug.cgi?id=960491#c2 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com, | |systemd-maintainers@suse.de Assignee|bnc-team-screening@forge.pr |mls@suse.com |ovo.novell.com | --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> --- This macro is defined in /usr/lib/rpm/suse_macros owned by rpm -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=960491 http://bugzilla.opensuse.org/show_bug.cgi?id=960491#c4 --- Comment #4 from Eric Schirra <ecsos@schirra.net> --- Would this be fixed or not? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=960491 http://bugzilla.opensuse.org/show_bug.cgi?id=960491#c5 --- Comment #5 from Eric Schirra <ecsos@schirra.net> --- Hello, please answer. Would this be fixed or not? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=960491 http://bugzilla.opensuse.org/show_bug.cgi?id=960491#c6 Christian Wittmer <chris@computersalat.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |chris@computersalat.de Resolution|--- |DUPLICATE --- Comment #6 from Christian Wittmer <chris@computersalat.de> --- Having same problem on a previous Ticket #894107 when updating phpMyAdmin which triggers a restart_on_update for apache2 *** This bug has been marked as a duplicate of bug 894107 *** -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com