xenserver: Wait for ovs-xapi-sync to exit in "stop" command.
authorBen Pfaff <blp@nicira.com>
Mon, 28 Mar 2011 23:22:59 +0000 (16:22 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 29 Mar 2011 17:09:47 +0000 (10:09 -0700)
commitb3d5b900a8c81020351151bab57fdc000a90827d
treed65c6a29af8df8642a2ad91caf88357fea70248f
parent18e124a20b366ee96e73600624a1a4000c816604
xenserver: Wait for ovs-xapi-sync to exit in "stop" command.

It seems possible that "restart" or a quick application of "stop" then
"start" could kill ovs-xapi-sync without starting it again, if
ovs-xapi-sync takes a little while to die, long enough for the next
instance of it to see that its pidfile is still open and locked.

I hope that this fixes some odd races that we've noticed in the "restart"
command.

Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/etc_init.d_openvswitch