Skip to contentSkip to conversation

ts-libvirt-build: initscript should depend on xenstored service

PATCH In review Ian Campbell 2 participants 2 messages May 26, 2015 – Jun 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-libvirt-build: initscript should depend on xenstored service

In order that xencommons is guarenteed to have been started before libvirtd. Otherwise sometimes libvirt can be started first resulting in:
error: invalid argument: unsupported config type xen-xl

Because xen wasn't available when libvirt started.

---
 ts-libvirt-build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ts-libvirt-build +2 -2
index 537742b..38f2cfd 100755
@@ -108,8 +108,8 @@ sub libvirtd_init () {
 #
 ### BEGIN INIT INFO
 # Provides:          libvirt-bin libvirtd
-# Required-Start:    $network $local_fs $remote_fs $syslog
-# Required-Stop:     $local_fs $remote_fs $syslog
+# Required-Start:    $network $local_fs $remote_fs $syslog xenstored
+# Required-Stop:     $local_fs $remote_fs $syslog xenstored
 # Should-Start:      avahi-daemon cgconfig
 # Should-Stop:       avahi-daemon cgconfig
 # Default-Start:     2 3 4 5
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] ts-libvirt-build: initscript should depend on xenstored service"):

Quoted 6 lines

In order that xencommons is guarenteed to have been started before libvirtd. Otherwise sometimes libvirt can be started first resulting in:
error: invalid argument: unsupported config type xen-xl

Because xen wasn't available when libvirt started.

Nice catch.