]> xenbits.xensource.com Git - libvirt.git/commitdiff
libvirt-guests: newline between output sentences
authorEric Blake <eblake@redhat.com>
Wed, 20 Mar 2013 14:54:08 +0000 (08:54 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 25 Mar 2013 14:38:35 +0000 (08:38 -0600)
Right now, libvirt-guests gives awkward output.  It's possible to
force faster failure by setting /etc/sysconfig/libvirt-guests to use:

ON_SHUTDOWN=shutdown
PARALLEL_SHUTDOWN=0
SHUTDOWN_TIMEOUT=1
ON_BOOT=ignore

at which point, we see:

$ service libvirt-guests restart
Running guests on default URI: a, b, d, c
Shutting down guests on default URI...
Starting shutdown on guest: a
Shutdown of guest a failed to complete in time.Starting shutdown on guest: b
Shutdown of guest b failed to complete in time.Starting shutdown on guest: d
Shutdown of guest d failed to complete in time.Starting shutdown on guest: c
Shutdown of guest c failed to complete in time.libvirt-guests is configured not to start any guests on boot

* tools/libvirt-guests.sh.in (shutdown_guest): Add missing newline.
Reported by Xuesong Zhang.

tools/libvirt-guests.sh.in

index 1c9c46b30c05337ff6bf4ed9797f3f2140c7b871..4f2e2035b7402a488a2003c33efecd329d8206ee 100644 (file)
@@ -269,6 +269,7 @@ shutdown_guest()
         else
             eval_gettext "Shutdown of guest \$name complete."
         fi
+        echo
     fi
 }