Comment 38 for bug 116897

Revision history for this message
Paul McEnery (pmcenery) wrote :

I added the above mentioned repository a while ago, but recently there have been a few virt-manager/libvirt updates. I think these may have been some upstream packages. Anyway, these packages dont seem to work too well as /var/run/libvirt doesnt exist. I have made the following change to the init file to get it working.

--- libvirt-bin~ 2007-12-21 09:51:25.000000000 +0000
+++ libvirt-bin 2007-12-21 10:33:11.000000000 +0000
@@ -22,7 +22,8 @@
 test -x $DAEMON || exit 0
 . /lib/lsb/init-functions

-PIDFILE=/var/run/$NAME.pid
+PIDDIR=/var/run/libvirt
+PIDFILE=$PIDDIR/$NAME.pid
 DODTIME=1 # Time to wait for the server to die, in seconds

 # Include libvirtd defaults if available
@@ -41,6 +42,12 @@
   fi
 }

+check_pid_dir() {
+ if [ ! -d "$PIDDIR" ]; then
+ mkdir -p $PIDDIR
+ fi
+}
+
 running_pid()
 {
     # Check if a given process pid's cmdline matches a given name
@@ -89,6 +96,7 @@
 case "$1" in
   start)
        if check_start_libvirtd_option; then
+ check_pid_dir
                log_daemon_msg "Starting $DESC" "$NAME"
                if running ; then
                        log_progress_msg "already running"

Also... with the updated packages, when you restart or stop libvirt-bin, the bridge is not taken down. Not sure where that is run.