I found now one difference:
On the working installation, I have "/etc/init.d/libvirt-bin", while this file is "/etc/init.d/libvirtd" on the not working installation.
Below is a diff of the two files. The most important difference might be the "Provides" line? The others are related to the name.
--- workinglibvirt-bin 2016-08-02 19:43:55.999309028 +0900
+++ notworkinglibvirtd 2016-08-02 19:43:17.588065711 +0900
@@ -6,7 +6,7 @@
# based on the skeletons that comes with dh_make
#
### BEGIN INIT INFO
-# Provides: libvirtd libvirt-bin
+# Provides: libvirtd
# Required-Start: $network $local_fs $remote_fs $syslog virtlogd
# Required-Stop: $local_fs $remote_fs $syslog virtlogd
# Should-Start: avahi-daemon cgconfig
@@ -31,13 +31,13 @@
DODTIME=1 # Time to wait for the server to die, in seconds
# Include libvirtd defaults if available
-if [ -f /etc/default/libvirt-bin ] ; then
- . /etc/default/libvirt-bin
+if [ -f /etc/default/libvirtd ] ; then
+ . /etc/default/libvirtd
fi
I found now one difference: d/libvirt- bin", while this file is "/etc/init. d/libvirtd" on the not working installation.
On the working installation, I have "/etc/init.
Below is a diff of the two files. The most important difference might be the "Provides" line? The others are related to the name.
--- workinglibvirt-bin 2016-08-02 19:43:55.999309028 +0900
+++ notworkinglibvirtd 2016-08-02 19:43:17.588065711 +0900
@@ -6,7 +6,7 @@
# based on the skeletons that comes with dh_make
#
### BEGIN INIT INFO
-# Provides: libvirtd libvirt-bin
+# Provides: libvirtd
# Required-Start: $network $local_fs $remote_fs $syslog virtlogd
# Required-Stop: $local_fs $remote_fs $syslog virtlogd
# Should-Start: avahi-daemon cgconfig
@@ -31,13 +31,13 @@
DODTIME=1 # Time to wait for the server to die, in seconds
# Include libvirtd defaults if available libvirt- bin ] ; then libvirt- bin libvirtd ] ; then libvirtd
-if [ -f /etc/default/
- . /etc/default/
+if [ -f /etc/default/
+ . /etc/default/
fi
check_ start_libvirtd_ option( ) { libvirt- bin" libvirtd"
if [ ! "$start_libvirtd" = "yes" ]; then
- log_warning_msg "Not starting libvirt management daemon libvirtd, disabled via /etc/default/
+ log_warning_msg "Not starting libvirt management daemon libvirtd, disabled via /etc/default/
return 1
else
return 0
@@ -135,17 +135,17 @@
}
wait_on_sockfile() { /var/run/ libvirt/ libvirt- sock check_retries= 5 check_retries= `expr $sockfile_ check_retries - 1`; then /var/run/ libvirt/ libvirt- sock force-stop event triggered before sockfile is created
- sockfile=
- sockfile_
- while [ ! -S $sockfile ]; do
- echo "Waiting for $sockfile - recheck in 2 sec"
- sleep 2
- if ! sockfile_
- echo "Giving up waiting for $sockfile."
- exit 1
- fi
- done
- return 0
+ sockfile=
+ while [ ! -S $sockfile ] ; do
+ if ! running ; then
+ # stop/restart/
+ exit 1
+ fi
+ echo "waiting for $sockfile."
+ sleep 0.5
+ done
+ echo "$sockfile ready."
+ return 0
}
case "$1" in init.d/ libvirt- bin init.d/ libvirtd stop|restart| reload| force-reload| status| force-stop} " >&2
@@ -238,7 +238,7 @@
fi
;;
*)
- N=/etc/
+ N=/etc/
echo "Usage: $N {start|
exit 1
;;