Bastian Blank
2010-Jun-30 14:29 UTC
[Pkg-xen-changes] r795 - in trunk/xen/debian: . templates
Author: waldi Date: Wed Jun 30 14:29:07 2010 New Revision: 795 Log: * debian/changelog: Update. * debian/templates/xen-utils.postinst.in, debian/templates/xen-utils.prerm.in: Call xend init-script. Modified: trunk/xen/debian/changelog trunk/xen/debian/templates/xen-utils.postinst.in trunk/xen/debian/templates/xen-utils.prerm.in Modified: trunk/xen/debian/changelog =============================================================================--- trunk/xen/debian/changelog Wed Jun 30 13:58:03 2010 (r794) +++ trunk/xen/debian/changelog Wed Jun 30 14:29:07 2010 (r795) @@ -2,6 +2,7 @@ * New upstream release candidate. * Call dh_pyversion with the correct version. + * Restart xen daemons on upgrade. -- Bastian Blank <waldi at debian.org> Sun, 27 Jun 2010 12:11:12 +0200 Modified: trunk/xen/debian/templates/xen-utils.postinst.in =============================================================================--- trunk/xen/debian/templates/xen-utils.postinst.in Wed Jun 30 13:58:03 2010 (r794) +++ trunk/xen/debian/templates/xen-utils.postinst.in Wed Jun 30 14:29:07 2010 (r795) @@ -5,6 +5,9 @@ case "$1" in configure) update-alternatives --install /usr/lib/xen-default xen-default /usr/lib/xen- at version@ 1 || true + if [ -x "/etc/init.d/xend" ]; then + invoke-rc.d xend start || exit $? + fi ;; abort-upgrade|abort-remove|abort-deconfigure) Modified: trunk/xen/debian/templates/xen-utils.prerm.in =============================================================================--- trunk/xen/debian/templates/xen-utils.prerm.in Wed Jun 30 13:58:03 2010 (r794) +++ trunk/xen/debian/templates/xen-utils.prerm.in Wed Jun 30 14:29:07 2010 (r795) @@ -5,9 +5,18 @@ case "$1" in remove) update-alternatives --remove xen-default /usr/lib/xen- at version@ + if [ -x "/etc/init.d/xend" ]; then + invoke-rc.d xend stop || exit $? + fi ;; - upgrade|deconfigure|failed-upgrade) + upgrade) + if [ -x "/etc/init.d/xend" ]; then + invoke-rc.d xend stop || exit $? + fi + ;; + + deconfigure|failed-upgrade) ;; *)