summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Harring <ferringb@chromium.org>2012-04-14 16:01:14 -0700
committerBrian Harring <ferringb@chromium.org>2012-04-14 16:47:58 -0700
commita17438dd07a0d237ce9763f1a6c5a37de3ba0c2b (patch)
tree5ea07274aa403c90db54e4c752160afed7541b6a
parentMake foreground controllable. (diff)
downloadkvm-tools-a17438dd07a0d237ce9763f1a6c5a37de3ba0c2b.tar.gz
kvm-tools-a17438dd07a0d237ce9763f1a6c5a37de3ba0c2b.tar.bz2
kvm-tools-a17438dd07a0d237ce9763f1a6c5a37de3ba0c2b.zip
output the start-stop-daemon command to make debugging easier
-rw-r--r--app-emulation/qemu-init-scripts/files/qemu-init-script4
1 files changed, 3 insertions, 1 deletions
diff --git a/app-emulation/qemu-init-scripts/files/qemu-init-script b/app-emulation/qemu-init-scripts/files/qemu-init-script
index 9880a7b..63c662c 100644
--- a/app-emulation/qemu-init-scripts/files/qemu-init-script
+++ b/app-emulation/qemu-init-scripts/files/qemu-init-script
@@ -161,7 +161,7 @@ start() {
fi
ebegin "Starting ${VM_BINARY##*/} for ${VMNAME} ${FOREGROUND:+at ${FOREGROUND}}"
- start-stop-daemon \
+ set -- start-stop-daemon \
--start "${VM_BINARY}" \
--pidfile ${PIDFILE} \
"${ss_args[@]}" \
@@ -173,6 +173,8 @@ start() {
"${NIC_COMMAND[@]}" \
${DISABLE_KVM:---enable-kvm} \
${MEMORY:+-m ${MEMORY}} ${SMP:+-smp ${SMP}} ${OTHER_ARGS}
+ einfo "invoking ${@}"
+ "${@}"
ret=$?
if [ "0" != "${ret}" -a -n "${QTAP}" ]; then
qtap-manipulate destroy ${QTAP}