[Pkg-xen-devel] Bug#422667: xen-utils-common: Init script outputs an error message while Xen is not installed any more

Vincent Bernat bernat at luffy.cx
Mon May 7 15:56:57 UTC 2007


Package: xen-utils-common
Version: 3.0.3-0-2
Severity: minor
Tags: patch

Hi !

/etc/init.d/xendomains and /etc/init.d/xend complain about
xen-utils-version not existing any more instead of failing silently.
The following patch fix this problem.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages xen-utils-common depends on:
ii  lsb-base                      3.1-23.1   Linux Standard Base 3.1 init scrip
ii  udev                          0.105-4    /dev/ and hotplug management daemo

xen-utils-common recommends no packages.
-------------- next part --------------
--- xend~	2007-05-07 17:51:12.000000000 +0200
+++ xend	2007-05-07 17:53:23.000000000 +0200
@@ -12,7 +12,7 @@
 PATH=/usr/lib/xen-common/bin:/sbin:/bin:/usr/sbin:/usr/bin
 DESC="XEN control daemon"
 XENSTORED_RUN_DIR="/var/run/xenstored"
-VERSION=$(xen-utils-version -q || true)
+VERSION=$(xen-utils-version -q 2> /dev/null || true)
 ROOT=/usr/lib/xen-$VERSION
 DAEMON=$ROOT/bin/xend
 
--- xendomains~	2006-09-09 13:28:21.000000000 +0200
+++ xendomains	2007-05-07 17:53:11.000000000 +0200
@@ -14,7 +14,7 @@
 ### END INIT INFO
 
 PATH=/usr/lib/xen-common/bin:/sbin:/bin:/usr/sbin:/usr/bin
-VERSION=$(xen-utils-version -q || true)
+VERSION=$(xen-utils-version -q 2>/dev/null || true)
 ROOT=/usr/lib/xen-$VERSION
 
 test "$VERSION" || exit 0


More information about the Pkg-xen-devel mailing list