[Pkg-libvirt-maintainers] Bug#523712: libvirt-bin init script exits with failure status after starting

Chip Salzenberg chip at pobox.com
Sun Apr 12 20:46:31 UTC 2009


On Sun, Apr 12, 2009 at 09:31:25PM +0200, Guido Günther wrote:
> On Sat, Apr 11, 2009 at 07:52:18PM -0700, Chip Salzenberg wrote:
> > Package: libvirt-bin
> > Version: 0.6.2-1
> > Severity: important
> > 
> > '/etc/init.d/libvirt-bin start' actually works but exits with non-zero status.
> > The output looks odd, as well: it prints both "OK" *and* "fail":
> > 
> > # /etc/init.d/libvirt-bin start
> >  * Starting libvirt management daemon libvirtd                           [ OK ] 
> >                                                                          [fail]
> > 
> > that's how it looks
> Please do some dash -x debugging. It looks sane here:
> 
> $ sudo /etc/init.d/libvirt-bin start
> Starting libvirt management daemon: libvirtd.
> $ echo $?
> 0

Here you go.  Looks like something wrong with splashy integration.

================================================================
sh -x /etc/init.d/libvirt-bin start
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/libvirtd
+ NAME=libvirtd
+ DESC='libvirt management daemon'
+ test -x /usr/sbin/libvirtd
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ . /etc/lsb-base-logging.sh
+ PIDFILE=/var/run/libvirtd.pid
+ DODTIME=1
+ '[' -f /etc/default/libvirt-bin ']'
+ . /etc/default/libvirt-bin
++ start_libvirtd=yes
++ libvirtd_opts=-d
+ set -e
+ mkdir -p /var/run/libvirt
+ case "$1" in
+ check_start_libvirtd_option
+ '[' '!' yes = yes ']'
+ return 0
+ log_daemon_msg 'Starting libvirt management daemon' libvirtd
+ '[' -z 'Starting libvirt management daemon' ']'
+ SPL_UPD=/sbin/splashy_update
+ '[' -r /etc/default/splashy ']'
+ . /etc/default/splashy
++ CHVT_TTY=auto
++ ENABLE_INITRAMFS=1
++ DEBUG=0
+ log_use_splashy
+ '[' n = y ']'
+ pidof splashy
+ log_to_console log_daemon_msg 'Starting libvirt management daemon' libvirtd
+ '[' n '!=' y ']'
+ '[' no '!=' yes ']'
++ readlink /proc/self/fd/0
+ stdin=/dev/pts/5
+ '[' /dev/pts/5 '!=' /dev/pts/5 ']'
+ return 0
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xrxvt '!=' '' ']'
+ '[' xrxvt '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z ']'
+ FANCYTTY=1
+ case "$FANCYTTY" in
+ true
+ /usr/bin/tput xenl
++ /usr/bin/tput cols
+ COLS=120
+ '[' 120 ']'
+ '[' 120 -gt 6 ']'
++ /usr/bin/expr 120 - 7
+ COL=113
+ printf ' * Starting libvirt management daemon libvirtd       '
 * Starting libvirt management daemon libvirtd       ++ /usr/bin/expr 120 - 1
+ /usr/bin/tput hpa 119
+ printf ' '
 + '[' -x /sbin/splashy_update ']'
+ '[' -z '' ']'
++ runlevel
++ sed 's/^. //'
+ RUNLEVEL=2
+ '[' -z 2 ']'
+ '[' x2 = x6 ']'
+ '[' x2 = x0 ']'
+ '[' '!' -z libvirtd ']'
+ case $2 in
+ running
+ '[' '!' -f /var/run/libvirtd.pid ']'
+ return 1
+ rm -f /var/run/libvirtd.pid
+ start-stop-daemon --start --quiet --pidfile /var/run/libvirtd.pid --exec /usr/sbin/libvirtd -- -d
+ running
+ '[' '!' -f /var/run/libvirtd.pid ']'
++ cat /var/run/libvirtd.pid
+ pid=8235
+ running_pid 8235 /usr/sbin/libvirtd
+ pid=8235
+ name=/usr/sbin/libvirtd
+ '[' -z 8235 ']'
+ '[' '!' -d /proc/8235 ']'
++ cat /proc/8235/cmdline
++ tr '\000' '\n'
++ head -n 1
++ cut -d : -f 1
+ cmd=/usr/sbin/libvirtd
+ '[' /usr/sbin/libvirtd '!=' /usr/sbin/libvirtd ']'
+ return 0
+ return 0
+ log_end_msg 0
+ '[' -z 0 ']'
+ STEPS_DIR=/lib/init/rw/splashy
+ SPL_UPD=/sbin/splashy_update
+ '[' -r /etc/default/splashy ']'
+ . /etc/default/splashy
++ CHVT_TTY=auto
++ ENABLE_INITRAMFS=1
++ DEBUG=0
+ log_use_splashy
+ '[' n = y ']'
+ pidof splashy
+ log_to_console log_end_msg 0
+ '[' n '!=' y ']'
+ '[' no '!=' yes ']'
++ readlink /proc/self/fd/0
+ stdin=/dev/pts/5
+ '[' /dev/pts/5 '!=' /dev/pts/5 ']'
+ return 0
+ '[' 113 ']'
+ '[' -x /usr/bin/tput ']'
+ printf '\r'
+ /usr/bin/tput hpa 113
+ '[' 0 -eq 0 ']'
+ echo '[ OK ]'
[ OK ]
+ '[' -x /sbin/splashy_update ']'
+ '[' '!' -d /lib/init/rw/splashy ']'
+ SPL_PRG=/lib/init/rw/splashy/2-progress
+ '[' -f /lib/init/rw/splashy/2-progress ']'
+ return 1
+ log_end_msg 1
+ '[' -z 1 ']'
+ STEPS_DIR=/lib/init/rw/splashy
+ SPL_UPD=/sbin/splashy_update
+ '[' -r /etc/default/splashy ']'
+ . /etc/default/splashy
++ CHVT_TTY=auto
++ ENABLE_INITRAMFS=1
++ DEBUG=0
+ log_use_splashy
+ '[' n = y ']'
+ pidof splashy
+ log_to_console log_end_msg 1
+ '[' n '!=' y ']'
+ '[' no '!=' yes ']'
++ readlink /proc/self/fd/0
+ stdin=/dev/pts/5
+ '[' /dev/pts/5 '!=' /dev/pts/5 ']'
+ return 0
+ '[' 113 ']'
+ '[' -x /usr/bin/tput ']'
+ printf '\r'
+ /usr/bin/tput hpa 113
+ '[' 1 -eq 0 ']'
+ printf '['
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ']'
]
+ '[' -x /sbin/splashy_update ']'
+ '[' '!' -d /lib/init/rw/splashy ']'
+ SPL_PRG=/lib/init/rw/splashy/2-progress
+ '[' -f /lib/init/rw/splashy/2-progress ']'
+ return 1
================================================================

-- 
Chip Salzenberg





More information about the Pkg-libvirt-maintainers mailing list