when libvirt-bin start,it donnot read config in /etc/default/libvirt-bin

Bug #718606 reported by wang junling
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Undecided
wang junling

Bug Description

i fix the bug like this:

/etc/init/libvirt-bin:

description "libvirt daemon"
author "Dustin Kirkland <email address hidden>"

start on runlevel [2345]
stop on runlevel [!2345]

expect daemon
respawn

pre-start script
        mkdir -p /var/run/libvirt
        # Clean up a pidfile that might be left around
        rm -f /var/run/libvirtd.pid
        start_libvirtd="yes"
        [ -r /etc/default/libvirt-bin ] && . /etc/default/libvirt-bin
        [ "$start_libvirtd" = "yes" ] || { stop; exit 0; }
end script

# If you used to set $libvirtd_opts in /etc/default/libvirt-bin,
# change the 'exec' line here instead.

script
        libvirtd_opts="-d"
        start_libvirtd="yes"
        [ -r /etc/default/libvirt-bin ] && . /etc/default/libvirt-bin
        exec /usr/sbin/libvirtd ${libvirtd_opts}
end script
#exec /usr/sbin/libvirtd -d

wang junling (wangjl)
Changed in libvirt (Ubuntu):
status: New → Fix Committed
assignee: nobody → wang junling (wangjl)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi,

could you explain what release you are on, what your /etc/init/libvirt-bin looked like before, and what exactly went wrong?

I.e. my guess is that this is a duplicate of bug 708172, and you are on an older release for which the fix has not yet been SRU'd. Is that correct?

Changed in libvirt (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.