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.
-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.
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 init-functions
+++ libvirt-bin 2007-12-21 10:33:11.000000000 +0000
@@ -22,7 +22,8 @@
test -x $DAEMON || exit 0
. /lib/lsb/
-PIDFILE= /var/run/ $NAME.pid /var/run/ libvirt $PIDDIR/ $NAME.pid
+PIDDIR=
+PIDFILE=
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() { libvirtd_ option; then
log_daemon_ msg "Starting $DESC" "$NAME"
log_ progress_ msg "already running"
+ 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_
+ check_pid_dir
if running ; then
Also... with the updated packages, when you restart or stop libvirt-bin, the bridge is not taken down. Not sure where that is run.